----- Original Message -----
From: "Marian Briones" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 05, 2007 6:35 AM
Subject: [php-list] Writing to a .htpasswd file
Hi everyoen
I am writing an access system and it needs to be able to encrypt the
username and password to a certain directory's .htpasswd file. I'm
not sure how to do it.
<snip>
-----------------------------
Hello,
The encrypted string in .htpassword files is server specific. Some
servers use MD5() and others use SHA(). Some servers also append a hash
before generating the encrypted key but this is less common.
You can tell the difference between MD5 and SHA by the length of the string
and the type of characters in it.
Rob M