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