Re: MD5 password

From: Date: Fri, 11 May 2001 03:48:16 +0000
Subject: Re: MD5 password
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52406@lists.php.net to get a copy of this message
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>

« previous php.general (#52406) next »