Don’t send unencrypted data from Flash to PHP. I’ve prepared a class that will take a string and convert it to HEX SHA1. It’s fully compatible to compare with PHP sha1(), puts less than 1Kb filesize penalty to your project and is able to iterate through at least 50 calculations a second…
You can download the class file and an example FLA+Document class here (8Kb) (536 downloads)
Modify, break, sell, copy, steal or improve. If you like it, tell me!


June 10th, 2008 at 10:08 am
fabulous lil piece of AS. I was just randomly glancing through digg and saw this and your name and instantly i remembered you from the gotoandlearnforums. thanks for posting this.
-Lee
June 10th, 2008 at 10:17 am
Thanks man. We all miss GTAL :P
June 12th, 2008 at 1:03 pm
Awesome, will definitely come in useful in a few projects…
Wishing I had more projects to use this specific one with, I enjoy the PHP/Flash projects more…
July 22nd, 2008 at 1:13 pm
Great piece of code… thanks
August 24th, 2008 at 10:03 am
[...] Read more | Source [...]
October 28th, 2008 at 1:10 am
I think your article is misleading. SHA1 creates a Hash and not an encrypted String that can be decrypted on the server-side. It surely is useful for passwords, where you compare the Hash sent by the user with the Hash in the Database. But you can’t use this to send encrypted data from flash to PHP.