Fast, Private & Client-Side Developer Suite
100% Client-Side • Private
Cryptography

.htpasswd Generator

Generate Bcrypt, MD5, and SHA-1 password hashes for Apache and Nginx HTTP Basic Auth.

Loading tool...

Related Tools

Continue with Bcrypt Generator & Verifier, MD5 Hash, 2FA / TOTP Authenticator Generator.

How to Use .htpasswd Generator

  1. Enter your desired username (e.g. admin).
  2. Type or generate a strong password.
  3. Choose your hashing algorithm (Bcrypt recommended, SHA-1 for Apache/Nginx compatibility).
  4. Copy the generated .htpasswd line or download the .htpasswd file.

Frequently Asked Questions

Which algorithm is recommended for production .htpasswd?

Bcrypt ($2y$) is strongly recommended for production environments as it provides robust protection against brute-force and dictionary attacks.

Is my plaintext password sent to any server?

No. Hashing is performed 100% locally in your browser using the Web Crypto API. Your passwords never touch a server.

Sources & References

Primary references: OWASP Password Storage Cheat Sheet: bcrypt; Apache HTTP Server: Authentication and Authorization.

Review policy: references and behavior notes are checked whenever the tool implementation changes.