static void GenerateHash() { var data = "P@ssw0rd"; var hash = HashFunctions.GenerateHash(data); Console.WriteLine(hash); var data2 = "P@ssw1rd"; var hash2 = CryptoHelper.GenerateBase64(HashFunctions.HashSize); Assert.IsTrue(HashFunctions.VerifyByHash(data, hash)); Assert.IsFalse(HashFunctions.VerifyByHash(data2, hash)); Assert.IsFalse(HashFunctions.VerifyByHash(data, hash2)); }