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!

Post a Comment

Popular posts from this blog

How to Turn Off Microsoft Arc Touch Mouse Scroll Sound Vibration

Search iPhone Text Messages with SQLite SQL Query

Microsoft Excel 2013 Sort Pivot Table By Calculated Field