Beispiel #1
0
        public void TestHashValidity()
        {
            var strToHash = "My hash text";
            var hashed    = BCryptCipher.Hash(strToHash);

            Assert.IsTrue(BCryptCipher.Equals(strToHash, hashed));
        }
Beispiel #2
0
        public void TestInvalidHash()
        {
            var hashed = BCryptCipher.Hash("test");

            Assert.IsFalse(BCryptCipher.Equals("testing", hashed));
        }