在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
代码如下: /// <summary> /// 计算哈希值字符串 /// </summary> public static string ComputeHash(byte[] buffer) { if (buffer == null || buffer.Length < 1) return ""; MD5 md5 = MD5.Create(); byte[] hash = md5.ComputeHash(buffer); StringBuilder sb = new StringBuilder(); foreach (var b in hash) sb.Append(b.ToString("x2")); return sb.ToString(); } 转载请注明出处:http://www.cnblogs.com/jietian331/p/6928608.html |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论