Click to See Complete Forum and Search --> : Encrypt data before submitting form to webserver
bee_kishore
02-27-2006, 10:27 PM
In my application, in login page, when user submits username and password i am sending the data (username and password) as plain text to the web server. In server side i am encrypting the password using md5. But i want to encrypt the data(password) in the client side before sending the data to the webserver. Could anyone pls help me in solving this issue.
Awaiting for your reply... :)
NogDog
02-27-2006, 10:33 PM
Well, the best way would be to use a SSL server connection. If that's not possible, then you could use an MD5 encryption in Javascript; but that raises the question of what happens if the user does not have JS available/enabled.
bathurst_guy
02-27-2006, 10:34 PM
Use SSL, you cant do this with PHP as it is server side and cannot do anything on the client system, you may do a md5 using javascript. but, if its security your worryin about then just install an SSL certificate