Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login info going as plain text - How to make it unreadable

Tags:

html

jquery

php

I'm doing a login form that uses jquery to pass data from the form to the script and back. I've noticed the email and password are being sent as plain readable text. I also noticed that in other site like this very one, or gmail or others, the login info isn't readable like mine is. How can I do this? Somehow, sending this info as plain text doesn't look very... professional.

Screen Capture FireBug

like image 653
Norman Avatar asked Dec 19 '12 03:12

Norman


1 Answers

you have several options here:

  1. Use HTTPS protocol to send the login informations.
  2. You can hash/encrypt your login info on the client side, upload it/process the form, and decrypt and process the login info on your server. SO have several Q/A answers regarding this process:

    • Two-way password encryption without ssl
    • Secure login: public key encryption in PHP and Javascript

However, options #2 is not really an options, if the encryption key are also submitted in plain text over the internet.

like image 88
ariefbayu Avatar answered Oct 05 '22 23:10

ariefbayu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!