コード例 #1
0
ファイル: CryptoExtensions.cs プロジェクト: ugt-software/LMIS
 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));
     }
 }
コード例 #2
0
ファイル: CryptoExtensions.cs プロジェクト: ugt-software/LMIS
 public static String ComputeCrc16Ccitt(this byte[] bytes, CRC16CCITT.Seeds seed)
 {
     return(ComputeCrc16Ccitt(bytes, seed, HashFormat.Hex));
 }