View Single Post
Old 05-23-07, 06:07 PM   #15
Join Date: Mar 2004
Posts: 15,487
Default Re: Need a non-functional PHP login box

Originally Posted by evilghost
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)
the password() function is a hash function as well. it's inside MySQL i believe.


actually, it appears to be its own encryption function in MySQL. i found a way to call the function outside of MySQL. i assume i just use that function instead of the md5() call?
ViN86 is offline   Reply With Quote