You are here: Re: [PHP] hash issues « PHP « IT news, forums, messages
Re: [PHP] hash issues

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация