Create your hashes online

Generate a .htpasswd password for Apache

Create your passwords with this .htpasswd generator for Apache. 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.

htpasswd Apache 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: :. For example: testuser:$1$yoXrXDSg$WibNw2BwmOzzyKZe7s./O1

The .htpasswd file is then included in an .htaccess file. You can find out more about the .htpasswd file generation looking at the Apache htpasswd documentation.