I have a Flash/ActionScript login client that sends the password to the server. On the server, that password is checked a WordPress database. The passwords are encrypted with the WordPress encryption method.
I'm using smartfoxserver2x, which encrypts the password on the client side before it is sent to the the server to be checked against the database (WordPress-encrypted) password.
So here's the flow:
- on the client, plain text password gets encrypted by sfs2x and sent to the server
- on the server,
sfs2xusescheckSecurePassword()to remove the sfs2x encryption and compare the plain-text password entered with the WordPress-encrypted password. They will obviously be different.
On the sfs2x forums, it was suggested that I encrypt the plain-text password with the WordPress hash before sfs2x encrypts it and sends it on the server. So I need to have 3 steps now:
- on the client, plain text password gets encrypted with wordpress hash
- on the client, that password gets encrypted by sfs2x
- on the server,
sfs2xusescheckSecurePassword()which removes the sfs2x encryption.
How can I achieve the first step?
My client login is in ActionScript. I am able to grab the password plain-text in ActionScript, but I don't know how to apply that WordPress encryption method (php) in ActionScript.