private string MD5Calc(string str)
{
string s = "";
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(str);
byte[] buffer = md5.ComputeHash(bytes);
for (int i = 0; i < buffer.Length; i++)
{
s += buffer[i].ToString("X2");
}
return s;
}
MD5值 计算_
最新推荐文章于 2023-05-17 13:43:27 发布