Your can use the php crypt() function to encrypt the passwords in the
.htpasswd file
$newPwd = crypt( trim( $newPwd) );  // encrypt the new password


Brandon Orther wrote:
> Hello,
>
> I am trying to make a script that creates .htpasswd files.  Does anyone
> know what encryption is used?
>
> Thanks
> Brandon
>
It can be crypt() or MD5 or SHA, you could call htpasswd.
See man htpasswd under *nix.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to