View Single Post
Old 05-23-07, 02:07 PM   #14
Registered User
Join Date: Jul 2005
Posts: 3,606
Default Re: Need a non-functional PHP login box

Originally Posted by ViN86
evilghost -

i assume that youre using the .md5() to hash the password. is it ok to use the password() hashing method instead?

this is what i planned to use in my MySQL database.
What's the password() method? crypt()? I like MD5 because it's a one-way hash and to test for successful login all you have to do is:

if(md5($user_supplied_password) == $md5_value_from_db)
evilghost is offline   Reply With Quote