Пример #1
0
    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);
    }
Пример #2
0
    private static string CreateHash(string blob)
    {
        MD5 md5Hash = MD5.Create();

        return(ExceptionCatcher.GetMd5Hash(md5Hash, blob));
    }