Exemplo n.º 1
0
        public void DeriveKeyStringIsDeterministicTest()
        {
            const string PASSWORD = "******";
            const string SALT     = "44071f6d181561670bda728d43fb79b443bb805afdebaf98622b5165e01b15fb";
            var          val1     = Symmetric.DeriveKey(PASSWORD, Utilities.HexToBinary(SALT));
            var          val2     = Symmetric.DeriveKey(PASSWORD, Utilities.HexToBinary(SALT));

            CollectionAssert.AreEqual(val1, val2);
        }