htpasswd Generator (bcrypt)
Generate an Apache htpasswd line (username:bcrypt-hash) for basic auth. Runs locally in your browser.
Apache configuration example:
AuthType Basic AuthName "Restricted Area" AuthUserFile /path/to/.htpasswd Require valid-user
After adding the entry to .htpasswd, reload your web server (Apache/Nginx).
How to use
- Enter a username and password.
- Click Generate to create a bcrypt-based htpasswd entry.
- Copy the output line into your .htpasswd file.
- Reload your server (Apache/Nginx) if needed.
FAQ
Is it safe to generate htpasswd here?
Generation runs locally in your browser. Still, treat passwords as sensitive and prefer using this on a trusted device.
Why bcrypt?
bcrypt is a slow hashing algorithm designed for passwords. It's generally stronger than legacy MD5/crypt schemes for htpasswd.