What this tool does
HTTP Basic Authentication protects a directory with a username and password. The credentials live in a .htpasswd file as username:hashedPassword. This tool generates that line using a bcrypt hash, which Apache (2.4+) and Nginx both support.
How to use it
- Enter a username and password and click Generate.
- Add the line to your
.htpasswdfile (one user per line). - Point your server config at that file (e.g.
AuthUserFilein Apache,auth_basic_user_filein Nginx).
Security: Basic Auth sends credentials on every request — always serve it over HTTPS. Use a strong, unique password. For production, generating hashes on your own server is preferable to any online tool.