Re: MD5 password
| From: | Thimo von Rauchhaupt | Date: | Fri, 04 May 2001 14:26:53 +0000 |
| Subject: | Re: MD5 password | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51420@lists.php.net to get a copy of this message | ||
> 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.
The difficult lies IMHO in hashing the password on client side. There are
Javascripts-Modules out there in the Net, but this is rather unsecure.