Пример #1
0
 public static String ComputeElf32(this byte[] bytes, HashFormat hashFormat)
 {
     using (var hashImpl = new ELF32())
     {
         var hashBytes = hashImpl.ComputeHash(bytes);
         return(ConvertToString(hashBytes, hashFormat));
     }
 }
Пример #2
0
 public static String ComputeELF32(byte[] bytes)
 {
     using (var hashAlgorithmImpl = new ELF32())
     {
         var hashBytes = hashAlgorithmImpl.ComputeHash(bytes);
         return(String.Concat(hashBytes.Select(b => b.ToString("x2"))));
     }
 }