Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-29-2007, 05:02 AM
Snapz
Guest
 
Posts: n/a
Default swfkit and md5 question

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.
Reply With Quote
  #2 (permalink)  
Old 12-29-2007, 05:09 AM
Snapz
Guest
 
Posts: n/a
Default Re: swfkit and md5 question

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 ?
Reply With Quote
  #3 (permalink)  
Old 12-29-2007, 07:02 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: swfkit and md5 question

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);
in as3 to call the Encryption object, you would have to first create an instance of it
Code:
var enc = new Encryption;
var password_md5 = enc.md5(password);
enc.Release();
However, the blowfish encrypted text can only be decoded by using swfkit again, because there is no equivalent blowfish method in php.
Reply With Quote
  #4 (permalink)  
Old 12-29-2007, 07:21 AM
Snapz
Guest
 
Posts: n/a
Default Re: swfkit and md5 question

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.
Reply With Quote
  #5 (permalink)  
Old 12-29-2007, 09:15 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: swfkit and md5 question

Yes, so you can protect the passwords from sniffing.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:46 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.