public void DecryptString() { var encrypted = AesUtility.EncryptStringToBytes_Aes(originalText, Key, IV); var decryptedString = AesUtility.DecryptStringFromBytes_Aes(encrypted, Key, IV); Assert.AreEqual(originalText, decryptedString); }
public void EncryptString() { var encrypted = AesUtility.EncryptStringToBytes_Aes(originalText, Key, IV); Assert.AreNotEqual(originalText, encrypted.ToString()); }