Forum Moderators: coopster
I would really prefer that the password was not visible to me, and at least showed up as ****'s so that the password is still useable when I try to add credits to their accounts, but not visible to me. I know I would not use their passwords for anything unethical, but I feel better knowing I am doing my best to keep my members information protected.
If anyone thinks they can help me, I can show you the script I have so you can see if you can help me fix it.
Thanks
Jessica Tracy
[edited by: coopster at 5:57 pm (utc) on Feb. 27, 2006]
[edit reason] removed url per TOS [webmasterworld.com] [/edit]
Encrypting passwords is a common and a good practice. You are right, why would you or anybody else ever need to see the plain text password? Typically you will see folks using the md5() [php.net] hash function to *encrypt* the password for storage and this happens when the account is initally setup (added/inserted to the storage file) as well as anytime a password change or update occurs.
Note that since you will be changing it in those two places, you are also going to need to change the code where the authentication occurs, where the user signs in. If the passwords are being stored in plain text today, then the comparison is being done in the same manner. You will need to md5 hash the user-supplied password during login to compare to the md5 value that you will now be storing.