RE: [PHP] .htpasswd encryption

From: Date: Thu, 12 Apr 2001 14:35:00 +0000
Subject: RE: [PHP] .htpasswd encryption
Groups: php.general 
Request: Send a blank email to php-general+get-48313@lists.php.net to get a copy of this message
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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#48313) next »