public void TestHashValidity() { var strToHash = "My hash text"; var hashed = BCryptCipher.Hash(strToHash); Assert.IsTrue(BCryptCipher.Equals(strToHash, hashed)); }
public void TestInvalidHash() { var hashed = BCryptCipher.Hash("test"); Assert.IsFalse(BCryptCipher.Equals("testing", hashed)); }