Generate a .htpasswd password for Apache

Create your passwords with this .htpasswd generator for Apache and nginx. Just enter your password and the tool will encrypt it ready for inclusion in .htpasswd . You can also override the salt generated by this tool by providing it manually.

Convert
...
to
...
One moment, loading...
Optional Settings
APACHE-HTPASSWD Converter

Once you have hashed your password, you need to add your username and save it in a file called .htpasswd . Each line is for a user following this specification: username:password_hash. For example: testuser:$apr1$kan2dc94$Xfi6nlAR7C.9LfQLTjDLi0

You can find more information about the .htpasswd file usage looking at the Apache authentication or the nginx authentication