public void SaltedHash_CanVerifyBadPass() { SaltedHash hash = new SaltedHash(); string hashed = SaltedHash.Generate(good); bool result = hash.VerifyHash(bad, hashed); result.Should().BeFalse(); }
public void SaltedHash_CanVerifyCreatedHash() { SaltedHash hash = new SaltedHash(); string hashed = SaltedHash.Generate(password); bool result = hash.VerifyHash(password, hashed); result.Should().BeTrue(); }