Esempio n. 1
0
 public static string GetSHA256Sum(this FileInfo fileInfo)
 {
     using (SHA256Managed sha256 = new SHA256Managed())
         return(fileInfo.CalculateChecksum(sha256));
 }
Esempio n. 2
0
 public static string GetMD5Sum(this FileInfo fileInfo)
 {
     using (MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider())
         return(fileInfo.CalculateChecksum(md5));
 }