using System;
using System.Globalization;
using System.Security.Cryptography;
public class Program
{
public static void Main()
byte[] data=new byte[]{0x01,0x02, 0x03,0x04};
var hasher=SHA1.Create();
var hash=hasher.ComputeHash(data);
Convert.ToHexString(hash).Dump();
// 12DADA1FFF4D4787ADE3333147202C3B443E376F
}