C#NET获取CalculateMD5Hash32位
2021-03-15 18:44
标签:pen tostring ash creat stringbu compute alc inpu string C#NET获取CalculateMD5Hash32位 标签:pen tostring ash creat stringbu compute alc inpu string 原文地址:https://www.cnblogs.com/wz2988/p/12416513.html1 public string CalculateMD5Hash(string input)
2 {
3 MD5 md5 = MD5.Create();
4 byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input);
5 byte[] hash = md5.ComputeHash(inputBytes);
6 StringBuilder sb = new StringBuilder();
7 for (int i = 0; i "X2")); }
8 return sb.ToString();
9 }
文章标题:C#NET获取CalculateMD5Hash32位
文章链接:http://soscw.com/index.php/essay/65058.html