RE: [PHP] .htpasswd encryption

2001-04-12 Thread Ryan Hilton
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

Re: [PHP] .htpasswd encryption

2001-04-11 Thread Hervé PARISSI
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

Re: [PHP] .htpasswd encryption

2001-04-09 Thread Lindsay Adams
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

Re: [PHP] .htpasswd encryption

2001-04-09 Thread Kurth Bemis
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