public static byte[] GetHash(Stream stream) { return new MD5CryptoServiceProvider().ComputeHash(stream); }