RE: [PHP] .htpasswd
| From: | Matt Schroebel | Date: | Tue, 02 Jul 2002 13:50:43 +0000 |
| Subject: | RE: [PHP] .htpasswd | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104909@lists.php.net to get a copy of this message | ||
%htpasswd --help
Usage:
htpasswd [-cmdps] passwordfile username
htpasswd -b[cmdps] passwordfile username password
htpasswd -n[mdps] username
htpasswd -nb[mdps] username password
-c Create a new file.
-n Don't update file; display results on stdout.
-m Force MD5 encryption of the password.
-d Force CRYPT encryption of the password (default).
-p Do not encrypt the password (plaintext).
-s Force SHA encryption of the password.
-b Use the password from the command line rather than promp
On Windows, TPF and NetWare systems the '-m' flag is used by default.
On all other systems, the '-p' flag will probably not work.