Link to home
Start Free TrialLog in
Avatar of bswinnerton
bswinnertonFlag for United States of America

asked on

Novice: AJAX password encryption?

I'm very very new to Javascript, AJAX, and JQuery.

Right now I have a modal window (fancybox) that pops up and prompts the user for a username and password, and then using AJAX passes all of the information to a PHP page using POST which then queries a MySQL database and returns an answer.

My question is, since I'm using post, is there a way like in PHP to convert it to MD5 so that it isn't in cleartext when debugging?

I've tried using this JQuery plugin: http://plugins.jquery.com/project/md5
And this javascript: http://pajhome.org.uk/crypt/md5/

But both of which give me an error in firebug saying something along the lines of "something.something is not a function".
Avatar of tym2laugh
tym2laugh
Flag of United States of America image

thats a good question i had the same issue
SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bswinnerton

ASKER

Hi Hielo (you're always out there to help me out!)

With the sample you just wrote are you assuming the jquery plugin or the javascript include?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial