Exemplo n.º 1
0
        public TestAesCrypto()
        {
            var keyValue = AesCrypto.CreateKeyAndIv();

            Key = keyValue.Key;
            Iv  = keyValue.Value;
        }
Exemplo n.º 2
0
        public void TestCreateKeyAndIv()
        {
            var keyValue = AesCrypto.CreateKeyAndIv();

            Assert.IsNotNull(keyValue);
            Assert.IsTrue(keyValue.Key.Length > 0);
            Assert.IsTrue(keyValue.Value.Length > 0);
            Console.WriteLine("Key:{0}", keyValue.Key);
            Console.WriteLine("IV:{0}", keyValue.Value);
        }