Esempio n. 1
0
        public void DecryptString()
        {
            var encrypted       = Rc2Utility.EncryptStringToBytes_Rc2(originalText, Key, IV);
            var decryptedString = Rc2Utility.DecryptStringFromBytes_Rc2(encrypted, Key, IV);

            Assert.AreEqual(originalText, decryptedString);
        }
Esempio n. 2
0
        public void EncryptString()
        {
            var encrypted = Rc2Utility.EncryptStringToBytes_Rc2(originalText, Key, IV);

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