您好,欢迎访问一九零五行业门户网

C#中登陆账户使用的MD5加密算法

public static string getmd5(string sdatain) { md5cryptoserviceprovider md5 = new md5cryptoserviceprovider(); byte[] bytvalue, bythash; bytvalue = system.text.encoding.utf8.getbytes(sdatain); bythash = md5.computehash(bytvalue); md5.clear(); string stemp = ; for (int i = 0; i < bythash.length; i++) { stemp += bythash[i].tostring(x).padleft(2, '0'); } return stemp.tolower(); }
其它类似信息

推荐信息