Hi! Thanks for visiting my blog. If you've received any value from my content would you mind supporting my new startup by downloading our browser add-on? It's called PriceBlink and makes online shopping a breeze. You can watch it in action here and download it for Chrome, Firefox, IE, or Safari by going to PriceBlink.com. Thank you and I hope you enjoy!

Macromedia Flex and Password Encryption

Jul 07

I was researching some different text encryption algorithms at work and stumbled across one that works fairly well. If you want to enable a simple means of security then you might find this useful. This beats storing a user’s password in a SharedObject in plain text.

I stumbled across the following algorithm written in JavaScript:
http://javascript.internet.com/passwords/xor-encryption4.html. I decided to convert the code to ActionScript so I could run it in my Flex project. It turns out that I only to make one or two minor tweaks and everything ran flawlessly. You can view the results below. Leave the default text or add your own and then click “encrypt”.

and here’s the code that makes it all happen: