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@xxxxxxxxx] Sent: Sunday, April 01, 2007 5:28 PM To: php-general@xxxxxxxxxxxxx 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php