Exemple #1
0
        public void Verify_VerifiesHash()
        {
            String value = "Test";
            String hash  = BCrypt.Net.BCrypt.HashString(value, 4);

            Assert.IsTrue(crypter.Verify(value, hash));
        }
 public void Verify_NullValue_ReturnsFalse()
 {
     Assert.False(crypter.Verify(null, ""));
 }
Exemple #3
0
 public void Verify_OnNullValueFails()
 {
     Assert.False(crypter.Verify(null, ""));
 }