public static string CreateMd5(string text)
{
MD5 md5 = MD5.Create();
byte[] md5Byte= md5.ComputeHash(Encoding.ASCII.GetBytes(text));
StringBuilder sb = new StringBuilder();
foreach (byte b in md5Byte)
{
sb.Append(b.ToString("x2"));
}
return sb.ToString();
}
MD5生成
发布时间 2023-04-25 16:46:37作者: AWT-Stephen