Hey guys. I am playing around with md5() for a login script. I have it setup now where when you register it submits $password=md5($row['pass']); to the database and then when you login it checks if strtoupper($password)==strtoupper(md5($_POST[pass]))
The problem is I always get different results :P.
So to make things simple I had it submit md5("hello"); into the database when I registered and then when Im on the login page it just retrieves the password from the database and compares it to md5("hello"); on the login page.
But its still different. What stupid mistake am I doing today? 
|