Showing posts from August, 2017

Generate Random AES Encryption Key

I was looking for a way to quickly generate a random AES key online, but couldn't find anything. I looked into a couple methods using JavaScript, but determined that a C# solution would be better.

I needed to base64 encode the key array to store that value in a config file.

Here's the code I ended up with:

Hope this helps!