Re: hash issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux