RE: HTDIGEST FILE FORMAT
| From: | Buesching, Logan J | Date: | Sun, 01 Apr 2007 22:35:43 +0000 |
| Subject: | RE: HTDIGEST FILE FORMAT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251904@lists.php.net to get a copy of this message | ||
The password is the hash of the entire thing, not just the password. So
it would be the following:
echo "admin:trac:".md5('admin:trac:admin');
-Logan
-----Original Message-----
From: Manolet Gmail [mailto:manolet@gmail.com]
Sent: Sunday, April 01, 2007 5:28 PM
To: php-general@lists.php.net
Subject: HTDIGEST FILE FORMAT
hi, i want a php script to create htdigest file...
the correct file is:
username:admin
digest:trac
pass:admin
admin:trac:71ea86385b35d5e2575b0baec1904ded
i try to do it on php with this:
echo "admin:trac:".md5("admin");
but i receive this:
admin:trac:21232f297a57a5a743894a0e4a801fc3
how is the htdigest format?