public static string MD5Encrypt(
string text)
{
MD5CryptoServiceProvider md5 =
new MD5CryptoServiceProvider();
byte[] b =
Encoding.Default.GetBytes(text);
byte[] b2 =
md5.ComputeHash(b);
string result =
BitConverter.ToString(b2);
result = result.Replace(
"-",
"").ToLower();
return result;
}
转载于:https://www.cnblogs.com/huanyun/p/11213184.html
转载请注明原文地址: https://mac.8miu.com/read-27471.html