Forum Moderators: phranque
An application I am working to improve sends a password across to the server in unencrypted form, so that examining the QUERY_STRING variable, the password can be seen plainly. I was wondering if there is a simple way to encrypt a password client side using Javascript, and then unencrypt using Perl on the server side?
Thanks for any advice
If you dont want to go this (somewhat expensive) route, you could have some javascript that takes the string, changes the characters with some kind of rough encryption, then submits. The CGI on the other end would then decrypt it. The problem is choosing a safe encryption method. Basically, anything you can choose could be seen by someone else. They could look at your encryption javascript source and would be able to determine the password.
Cheers, NEIL