Exemple #1
0
        public void DecryptString()
        {
            var encrypted       = AesUtility.EncryptStringToBytes_Aes(originalText, Key, IV);
            var decryptedString = AesUtility.DecryptStringFromBytes_Aes(encrypted, Key, IV);

            Assert.AreEqual(originalText, decryptedString);
        }
Exemple #2
0
        public void EncryptString()
        {
            var encrypted = AesUtility.EncryptStringToBytes_Aes(originalText, Key, IV);

            Assert.AreNotEqual(originalText, encrypted.ToString());
        }