Exemplo n.º 1
0
        public void Aes()
        {
            string source      = "wangxiaoming";
            string aesEncypted = CryptoUtils.AESEncode(source, "test");

            output.WriteLine("wangxiaoming aes: " + aesEncypted);
            string aesDecrypted = CryptoUtils.AESDecode(aesEncypted, "test");

            Assert.Equal(aesDecrypted, source);
        }