defenseman
[H]ard|Gawd
- Joined
- Nov 20, 2000
- Messages
- 1,738
So I'm creating my own PHP authentication system. Basically the simple process is as follows:
The login page (HTTP...not HTTPS) asks for a username and password. It POSTs the username and password to my PHP authentication scripts. The rest is whatever...
My question is, if I'm using a HTTP connection, how do I secure the password from prying eyes before it hits my server? The only thing I can think of right now is using JavaScript. But since users can turn that off and/or change JavaScript values, is that useful? An attacker could just capture that packet and re-send it at will.
I looked at the code for this site and looked at the POST data. For the password variables (yes there are more than one...), all the data is already hashed/encrypted before getting to the server.
The login page (HTTP...not HTTPS) asks for a username and password. It POSTs the username and password to my PHP authentication scripts. The rest is whatever...
My question is, if I'm using a HTTP connection, how do I secure the password from prying eyes before it hits my server? The only thing I can think of right now is using JavaScript. But since users can turn that off and/or change JavaScript values, is that useful? An attacker could just capture that packet and re-send it at will.
I looked at the code for this site and looked at the POST data. For the password variables (yes there are more than one...), all the data is already hashed/encrypted before getting to the server.
Last edited: