Exemple #1
0
        public void TestAES()
        {
            string ciperText = SecurityHelper.AESEncryptToBase64(input);
            string result    = SecurityHelper.AESDecryptFromBase64(ciperText);

            Assert.AreEqual(input, result);

            ciperText = SecurityHelper.AESEncryptToHex(input);
            result    = SecurityHelper.AESDecryptFromHex(ciperText);
            Assert.AreEqual(input, result);
        }