Antwort: Re: [PHP] How can MD5 HAsh be passed to db as pwd? was a Re: [PHP] Securing PHP code
| From: | SLanger at spirit21 dot de | Date: | Fri, 27 Jun 2003 07:01:30 +0000 |
| Subject: | Antwort: Re: [PHP] How can MD5 HAsh be passed to db as pwd? was a Re: [PHP] Securing PHP code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153065@lists.php.net to get a copy of this message | ||
> Set the column type of password to be a char(32). Then, pass the
password
> through md5 to mysql to store it. To verify it, pass the password
through
> md5 then compare it to what's in the database.
This is true for your own authentication but I mean how to connect to the
database using md5. This would especially interest me with mysql since
this is the db I use most often.
THe problem is to store your password as a md5 hash in the database you
have to connect to it. As far as I know you can't pass the connection
password as a md5 hash .
Regards
Stefan Langer