Example #1
0
        public void DeveGerarHash()
        {
            GerenciadorDeHash sut = new GerenciadorDeHash();

            (string salt, string hash)dadosHash = sut.GerarHash("123123");

            Assert.NotEmpty(dadosHash.salt);
            Assert.NotEmpty(dadosHash.hash);
        }
Example #2
0
        public void DeveSerIgual()
        {
            GerenciadorDeHash sut = new GerenciadorDeHash();

            Assert.True(sut.ValidarHash("P4SKLzzRnwVPNpwUrY8ZVbByszeCuI4hVDaLJKn1S5s=", "lvtBXaaN5BnHK4BGy/lYCQ==", "123123"));
        }