note 25252 rejected from function.md5 by victor

From: Date: Tue, 17 Sep 2002 05:42:10 +0000
Subject: note 25252 rejected from function.md5 by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-36766@lists.php.net to get a copy of this message
Oh, this is an odd problem: I have a password [md5(serialize($userpass)] which I insert into a mysql-table. When I log in to my site via a form, I do the following: onsubmit: $userpass=md5(serialize($userpass)); SELECT userid, username, userpass FROM tbluser; Then I compare both strings, and it always says "Wrong password". I found out, that the hash inserted into the table is completely different from the one I generate in the script. What am I doing wrong?

« previous php.notes (#36766) next »