Wednesday, January 30, 2008

Snippet: Rijndael Encrypt (and Decrypt)

Here is a pretty easy and useful little snippet to encrypt and decrypt in Rijndael (AES). Nothing fancy, but here it is nonetheless. Oh, and it uses your logged in Windows account name as the key, so you may want to change that to be your company's domain, an MD5, your pet's mother's favorite teacher's high-school sweetheart's maiden name, etc... ;)

Download: Rijndael Encrypt and Decrypt (C#)

Sample Clear:
blah

Sample Encrypted: (with "KEY")
wFf0sBZwld46DOV3Adu3gg==

No comments: