Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

encrypted password

Status
Not open for further replies.

kazilian

Programmer
Nov 14, 2003
30
US
hhmm...not sure if this is possible, but i'll give it a shot. i want to encrypt the password from the html/php form to the webserver. i don't want someone to see the password in plain text from the end user to the server over the network if they were using a network sniffer. i'm using sessions to do my log-ins on an apache linux server. thx in advance.

kazilian
Protector of Wazil
 
Hmmm, I don't think that is possible. PHP is server-side processing. The transport used to send from client->server is http, and of course it isn't encrypted.

One thing you can do is set up SSL (which means you will need to get a certificate, etc.)

Then when you go to your https:// site, the data will be encrypted from the client to the server.

If I'm wrong someone kindly correct me. :)

D
 
Depending on how secure you need this to be, you could use javascript to do some basic encryption before sending it to the server.
 
kewl beans. thx a bunch. however, if danomac is wrong, i would like to hear the correct answer. but i believe you danomac [thumbsup] what you mentioned did make sense. thx again.

kazilian
Protector of Wazil
 
got any code samples or a link i can check out Westbury?

kazilian
Protector of Wazil
 
Well, you could look into client-side scripting like Java. I didn't even think of that.

D
 
Check this thread in the Javascript forum on this site: thread216-256612
 
If you're using Apache, I recommend implementing HTTPS using a self-signed certificate. Browsers will complain about not being able to verify the signature on the key, but the encryption is as strong as any HTTPS connection.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
sleipnir: good point

But you can install a trusted certificate on the client's machine.

D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top