示例#1
0
 public static string Crc32Hex(byte[] bytes)
 {
     using var crc32 = new Crc32();
     return(ByteArrayHelper.ByteArrayToHex(crc32.ComputeHash(bytes)));
 }
示例#2
0
 public static string SHA1Hex(byte[] bytes)
 {
     using var sha1 = SHA1.Create();
     return(ByteArrayHelper.ByteArrayToHex(sha1.ComputeHash(bytes)));
 }