htpasswd Generator
Build a .htpasswd file for Apache or nginx basic auth — bcrypt or Apache MD5, several users at once.
Stays on your device. This tool runs in your browser — nothing you paste or open ever leaves it. Nothing uploaded, nothing to leak.
.htpasswd outside your web root, then point AuthUserFile (Apache) or auth_basic_user_file (nginx) at it. Basic auth sends credentials on every request — use HTTPS only.Wiring it up
In Apache, point AuthUserFile at the file inside a directory block or .htaccess, alongside AuthType Basic, AuthName and Require valid-user. In nginx, use auth_basic and auth_basic_user_file in the location block. Basic auth sends credentials on every request, so only use it over HTTPS.
bcrypt or Apache MD5
Choose bcrypt ($2y$) — it is salted, deliberately slow and the modern default on Apache 2.4 and above. Apache MD5 ($apr1$) exists for older servers that cannot handle bcrypt; it is far weaker and should only be used when you have no choice.