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)); } }
public static String ComputeCrc16Ccitt(this byte[] bytes, CRC16CCITT.Seeds seed) { return(ComputeCrc16Ccitt(bytes, seed, HashFormat.Hex)); }