⚡ DevToolKit

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

  1. Enter a username and password.
  2. Click Generate to create a bcrypt-based htpasswd entry.
  3. Copy the output line into your .htpasswd file.
  4. 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.