How can I encrypt and decrypt using AES 128 without an IV?
问题 I'm currently needing a way to encrypt a string and decrypt a byte array using AES-128 symmetrical encryption, in C#. I can't find a way how to do this, but maybe I've missed something. 回答1: Import namespaces using System; using System.IO; using System.Text; using System.Security.Cryptography; static void Main(string[] args) { string value = "@arifansari300<3>"; string encryptedValue= EncryptDecrypt.Encrypt(value); string decryptedValue = EncryptDecrypt.Decrypt(encryptedValue); } public