Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Thanked 0 Times in 0 Posts

    Cool Encoding a Password

    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>

  • #2
    Regular Coder 2reikis's Avatar
    Join Date
    Nov 2005
    New Mexico, USA
    Thanked 13 Times in 13 Posts
    There is a different input type for password.

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

  • #3
    Regular Coder
    Join Date
    Sep 2005
    Thanked 0 Times in 0 Posts
    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)
    If you want answers, write a smart question.

    Yes, someone probably does know how...

    Oh, and if you want to learn, STFW!


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts