110,535
社区成员
发帖
与我相关
我的任务
分享
public static string MD5(string password)
{
byte[] b = System.Text.Encoding.Default.GetBytes(password);
b = new System.Security.Cryptography.MD5CryptoServiceProvider().ComputeHash(b);
string ret = "";
for (int i = 0; i < b.Length; i++)
ret += b[i].ToString("x").PadLeft(2, '0');
return ret;
}