• 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
Share on other sites

1 answer to this question

Recommended Posts

  • 0

It most certainly does! Weird I knew I had achieved this before but I couldn't remember how and there was no documentation I could find on it ><. Thanks though!

Link to comment
Share on other sites

This topic is now closed to further replies.