htaccess htpasswd password generator
.htaccess files can be used to restrict access to web pages on an Apache web server. A simple access control mode provided by Apache is called basic authentication. Usernames and encrypted passwords are stored in a file called .htpasswd.
This tool generates a line for you username and password that can be directly added into the .htpasswd.
For more information on htaccess password protection you can read the “htaccess Password Protection using htpasswd and htdigest” article.
Enter your username and password below and click “Generate .htpasswd line”
- The output changes every time you refresh this page; this is perfectly normal. It is related to the one-way encryption mechanism used.
- When choosing encryption mode, “Unix” means “all platforms but Windows, Netware and TPF” and “Windows” means “Windows, Netware and TPF”.

