private static bool VerifyMd5Hash(MD5 md5Hash, string input, string hash) { string md5Hash2 = ExceptionCatcher.GetMd5Hash(md5Hash, input); StringComparer ordinalIgnoreCase = StringComparer.OrdinalIgnoreCase; return(ordinalIgnoreCase.Compare(md5Hash2, hash) == 0); }
private static bool VerifyMd5Hash(MD5 md5Hash, string input, string hash) { string str = ExceptionCatcher.GetMd5Hash(md5Hash, input); if (StringComparer.OrdinalIgnoreCase.Compare(str, hash) == 0) { return(true); } return(false); }
private static string CreateHash(string blob) { MD5 md5Hash = MD5.Create(); return(ExceptionCatcher.GetMd5Hash(md5Hash, blob)); }
private static string CreateHash(string blob) { return(ExceptionCatcher.GetMd5Hash(MD5.Create(), blob)); }