Пример #1
0
        public void TestDeriveKeys()
        {
            var input = Encoding.ASCII.GetBytes("hi, how are you?");

            if (!string.Equals(
                    Symmetric.DeriveKeys(input, 64).ToHexString(),
                    "d6350bb9b83884774fb9b0881680fc656be1071fff75d3fa94519d50a10b92644e3cc1cae166a60167d7bf00137018345bb8057be4b09f937b0e12066d5dc3df",
                    StringComparison.InvariantCultureIgnoreCase))
            {
                throw new Exception("DeriveKeys does not produce a correct output");
            }
        }