Posted by Jason Wong on 02/24/05 06:49
On Wednesday 23 February 2005 10:25, Erbacher Karl wrote:
> Here's my big problem... I created three seperate sample users with
> three different passwords (password1, password2, password3). When I go
> back to look at the table info in the database, it shows that all three
> of the passwords are exactly the same. I'm not sure why this is
> happening.
I strongly suspect you're hashing an empty string.
echo "password [$password]";
$pass=bin2hex(mhash(MHASH_SHA1, $password));
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts
[Back to original message]
|