public void DecryptString() { var encrypted = Rc2Utility.EncryptStringToBytes_Rc2(originalText, Key, IV); var decryptedString = Rc2Utility.DecryptStringFromBytes_Rc2(encrypted, Key, IV); Assert.AreEqual(originalText, decryptedString); }
public void EncryptString() { var encrypted = Rc2Utility.EncryptStringToBytes_Rc2(originalText, Key, IV); Assert.AreNotEqual(originalText, encrypted.ToString()); }