“Can you share your serial key with us so that we can check the properties of the key and do the needful to you.”
by Skelta Support http://www.skelta.com/

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==

5 Responses to “Snippet: Rijndael Encrypt (and Decrypt)”

  • Dev62:

    This is what was picked to be the actual implementation of the Advanced DES standard. It was not picked because it is a strong algorithm. Rather the NSA directed NIST to choose it. One can only guess it is because the NSA can break it.

    Thumb up Thumb down 0

  • You’re right. It is not the strongest, but it is extremely versatile and is typically much smoother on the crunch-time than most “better” algorithms.

    Honestly, the only reason I ever choose to use Rijndael is when I need my output to be ASCII. ;)

    Thumb up Thumb down 0

  • Other than trusting the cert on cltines before using it, I have been manually generating a CSR (the stock cert doesn’t have enough details), installing the publicly signed cert and then choosing that with slap config to set up the Master. Been meaning to do a post on that

    Thumb up Thumb down 0

  • Thanks I just spent a few hours trying to get my pgceaaks to work after deployment. I’d taken the same steps you took (including all the ones that didn’t work like SQL Server storage protection), but I hadn’t edited the command line, which has worked! Greatly appreciate that you took the time to post the information!

    Thumb up Thumb down 0

  • We are looking for idilvdnuais to walk in the parade in the Carifest section. Are you available to do this on May 5th, 11-3pm? We can put your name on the list of participants and send you the staging details. We are asking volunteers to commit to the time. Reply to let us know you are interested and available. Please point others who might be interested in our direction. Children are also encouraged to participate.Thanks, TC Carifest committee

    Thumb up Thumb down 0

Leave a Reply

Tags
Get a free book about code review best practices.