C# 字符串计算MD5
作者:互联网
public static string ComputeMD5 (string text) // 计算字符串的 MD5
{
System.Security.Cryptography.MD5CryptoServiceProvider md = new System.Security.Cryptography.MD5CryptoServiceProvider();
string hc = BitConverter.ToString(md.ComputeHash(Encoding.Default.GetBytes(text)));
md.Dispose();
return (hc);
}
标签:md,string,Cryptography,C#,text,System,字符串,hc,MD5 来源: https://www.cnblogs.com/netlog/p/15907190.html