|
|||
|
Hi!
I have a slight problem and im not really sure how to solve it. Thing is that i have a flash project that i want to use in swfkit. In my flash application, first is needed to login. How do i get swfkit to get the password (typed in flash movie) encrypt in md5 and then send it foward to the server (im using amfphp)? Then another question... if i also want sensitive data encrypted with md5... then it all will be saved, in databases, in encrypted form. But if i need to access that data in flash again, how do i de-crypt ? Allmost all data needs to be encrypted ... only in the application it needs to be decrypted. |
|
|||
|
Ohh, i found blowfish.encode and decode... now is the question how do i get all data (except password) from flash, to encrypt with blowfish and send it to server and when recived from server, to decode back into flash ?
|
|
|||
|
For example to verify the user password. Suppose you have a php file called verify.php that provides a remote method VerifyPassword.
for as2 Code:
import SWFKit.*;
var username = user.text;
var password = pass.text;
var password_md5 = Encryption.md5(password);
var nc = new NetConnection();
nc.connect("http://myserver.com/verify.php");
nc.call("VerifyPassword", null, username, password_md5);
Code:
var enc = new Encryption; var password_md5 = enc.md5(password); enc.Release(); |
|
|||
|
thanx
![]() i allmost figured it out. still im wondering a bit (maybe wrong place to ask in) if php gets this md5 encoded password... does it looks if the encode matches in db ? anyhow, blowfish seems cool cause i have data i need to encode but not so hard, just so that when sniffed over net, others wont see plain text... same in databases if someone wants to spy messages. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|