LuckyShima
02-10-2006, 10:30 PM
If anyone has written a password protected application, how do you store the passwords?
I use sha1() in php, which hashes the password. However, I am using this on an information site where the user can come back and login and ask for more information, and I am thinking that storing the password in a hash like this is a bit of overkill. The main reason for me thinking this is that the password cannot be sent to the user, the user can only be sent a new password and then must change the password back to their old password if they want.
I am just thinking that maybe I don't really need to do this on just a free information service site, it seems a bit of overkill.
Do any of you just store the password as a text string? What else do you use?
I use sha1() in php, which hashes the password. However, I am using this on an information site where the user can come back and login and ask for more information, and I am thinking that storing the password in a hash like this is a bit of overkill. The main reason for me thinking this is that the password cannot be sent to the user, the user can only be sent a new password and then must change the password back to their old password if they want.
I am just thinking that maybe I don't really need to do this on just a free information service site, it seems a bit of overkill.
Do any of you just store the password as a text string? What else do you use?