On Fri, 4 May 2001, Thimo von Rauchhaupt wrote:
> > Hi there assume that I had a password field in md5 format like this
> > $1$uJ8d$jJKOHnfh^79824/.
> > how do i compare an input password to the password that I sore in database
> >
> > so it can return right or wrong password
>
> Just compare the md5 hashed password with the md5 hashed string from the
> database. If the password is like the string, the hashes must equal, too.
Do _not_ store the password in the database as it is. Instead, store the
md5 hash of the password and compare the md5 hash of user input with
_that_.
Anuradha
----------------------------------------------------------
<a href="http://www.bee.lk/people/anuradha/">home page</a>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]