• 0

C# AES can't find what I'm looking for


Question

Well I've been searching for hours and I can't believe I can't find or get an example working to do what I want. What I want to do is simple. I want to have an AES key and iv randomly generated (not from a password), then take a byte array and encrypt it. You'd think that'd be simple. If I want to encrypt via rsa I simply import my public key and pass the values. When using AES you can generate a key and an IV. Why is there not a simple Encrypt or decrypt function that passes those values? Please help ><.

So for example: byte[] encryptedArray = AesEncrypt(byte[] plainByteArray, byte[] key, byte[] iv); Can't seem to find anything to do with with AesCryptoServiceProvider or RijndaelManaged classes :(

Link to comment
https://www.neowin.net/forum/topic/1153722-c-aes-cant-find-what-im-looking-for/
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.