Ejemplo n.º 1
0
 public static String ComputeCrc16Ccitt(this byte[] bytes, CRC16CCITT.Seeds seed, HashFormat hashFormat)
 {
     using (var hashImpl = new CRC16CCITT(seed))
     {
         var hashBytes = hashImpl.ComputeHash(bytes);
         return(ConvertToString(hashBytes, hashFormat));
     }
 }
Ejemplo n.º 2
0
 public static String ComputeCrc16Ccitt(this byte[] bytes, CRC16CCITT.Seeds seed)
 {
     return(ComputeCrc16Ccitt(bytes, seed, HashFormat.Hex));
 }