password generator for htpasswd files

user name:

password:


Sample .htaccess file:

       AuthUserFile [FULL PATH TO .htpasswd FILE]/.htpasswd
       AuthGroupFile /dev/null
       AuthName EnterPassword
       AuthType Basic

       require user [USER]

The .htpasswd file should be placed somewhere out of the reach of browsers, i.e. outside the server's document root (usually /var/www).