This script allows you to generate .htaccess & .htpasswd files easily.