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?
>
> Tha
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
It can really depend on your system.
On mine, for instance, it uses regular crypt() with a 2 character salt
So, you can generate a random 2 character string to pass as the salt
argument in php, and create it that way.
IF that is the method used by your system
Wanna test it?
Peek inside etc/pass
At 04:39 PM 4/9/2001, Brandon Orther wrote:
i believe that the scheme is md5
~kurth
>Hello,
>
>I am trying to make a script that creates .htpasswd files. Does anyone know
>what encryption is used?
>
>Thanks
>Brandon
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mai
4 matches
Mail list logo