using System; using System.Text; using System.Security.Cryptography; namespace YOLODetectProcessLib { public class HashCode { public static string ComputeHashCode(byte[] input) { MD5 md5 = MD5.Create(); byte[] hash = md5.ComputeHash(input); StringBuilder sb = new StringBuilder(); foreach (var b in hash) { sb.Append(b.ToString("x2")); } string hashstr = sb.ToString(); sb.Clear(); return hashstr; } } }