This script generates an encrypted password for use in a .htpasswd file to password protect webserver resources.
Often used in combination with the Apache webserver to protect a directory or file from unauthorized access.
The .htaccess file should contain a valid, full path to the location of the .htpasswd file.
Example :
AuthUserFile /var/www/domains/dtools.net/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Access"
AuthType Basic
<limit GET>
require valid-user
</Limit>