public static string HashBytes(byte [] bytes)
 {
     using (HashAlgorithm hashAlg = new Crc64()) {
         byte [] hash = hashAlg.ComputeHash(bytes);
         return(ToHexString(hash));
     }
 }
        public static string HashStream(Stream stream)
        {
            stream.Position = 0;

            using (HashAlgorithm hashAlg = new Crc64()) {
                byte[] hash = hashAlg.ComputeHash(stream);
                return(ToHexString(hash));
            }
        }
 public static string HashFile(string filename)
 {
     using (HashAlgorithm hashAlg = new Crc64()) {
         return(HashFile(filename, hashAlg));
     }
 }