View Full Version : Encoding a Password

12-30-2005, 11:01 PM
I have a form on my website that people fill out and submit. After submitting the information goes to my mailbox. One of the required boxes is a password. Currently, the password appears in plaintext. Is there a way to make it appear in bullets or starts like any other site? And I still need to be able to read it once it is submitted. The code for the form is as follows (only the password portion of it):

<TR><TD><font size="-1" face="Helvetica, Arial, Verdana" color="black">* Username</font></TD><TD><INPUT TYPE="TEXT" NAME="user"
SIZE="30" MAX="100"></TD></TR>
<TR><TD><font size="-1" face="Helvetica, Arial, Verdana" color="black">* Password (read warning)</font></TD><TD><INPUT TYPE="TEXT"
NAME="pass" SIZE="30" MAX="100"></TD></TR>

:confused: :confused: :confused: :confused: :confused: :confused: :confused:

12-30-2005, 11:25 PM
There is a different input type for password.

<input type="password" NAME="pass" SIZE="30" MAX="100">

01-03-2006, 01:33 PM
Note that this does not encrypt the passwords, it just makes it so that the text isn't displayed as plaintext on the screen... You would need to apply some other function in order to truely encrypt it.

MD5 is a common one-way encryption process (at least for PHP, and I've found a .js file that allows this operation in js too). "One-way encryption" means that you (the web admin) would be given the encrypted value, but you (or anyone else) cannot go back and get the password from this encrypted value (thus, only the user would know their own password; you would just check the encrypted values in order to verify the password)