How to use POST word for entering password | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

How to use POST word for entering password

In forms

3rd Nov 2019, 8:16 AM
Puthur Harthik
4 Answers
+ 4
I tried but it is taking information normally. it is not hiding information
3rd Nov 2019, 8:23 AM
Puthur Harthik
+ 3
Do you mean that you want the password to be hidden as a person types it in the form? Or, Do you mean that when the password is POSTed (sent), you would like it be encrypted and not show the true password ? Please elaborate.
3rd Nov 2019, 10:15 AM
Xyenia 🦉
Xyenia 🦉 - avatar
+ 3
Not to show the password. By using method="POST".
3rd Nov 2019, 10:17 AM
Puthur Harthik
+ 2
You are going to have to use a script to hash or encrypt the password before it arrives at it's destination. I'd advise not to use MD5 hashing. In php, I use bcrypt. I think I chose that method in settings somewhere, locally on my server and remotely. I forget now, but my scripts in php verify a password matches a bcrypt hashed version. Research bcrypt. Bcrypt is also irreversible, meaning you cannot get the original password out of it. Of course, there are other hashing and salting methods.
3rd Nov 2019, 10:51 AM
Xyenia 🦉
Xyenia 🦉 - avatar