Esempio n. 1
0
        public void PasswordBasedKeyDerivationFunction()
        {
            string passphrase = "Twas brillig and the slithy toves did gyre and gimble in the wabe";

            byte[] salt = HashHelpers.GenerateSalt();

            byte[] key = HashHelpers.DeriveKey(passphrase, salt);

            key.Length.Should().Be(32);
        }