Generate .htpasswd Entries for Apache & Nginx
Create HTTP Basic Authentication password lines in Bcrypt ($2y$), SHA-1 ({SHA}), and MD5-APR1 ($apr1$) formats.
About This Tool
Apache & Nginx .htpasswd Generator produces password hash entries for .htpasswd files used in web server directory protection and HTTP Basic Authentication.
Key Features
How to Use
- 1Enter the username and password.
- 2Choose your hash algorithm: Bcrypt ($2y$), SHA-1 ({SHA}), or MD5-APR1 ($apr1$).
- 3Click 'Generate .htpasswd Entry' and copy the resulting string into your .htpasswd file.
Why Use ToolSnippet Apache & Nginx .htpasswd Generator?
Tips for Best Results
- For modern Nginx and Apache servers, always choose Bcrypt for maximum brute-force resistance
Frequently Asked Questions
Where do I put the generated line?
Copy the line into a file named .htpasswd on your web server, and reference it inside your Apache .htaccess or Nginx configuration.
Related Tools
All Security, Hashing & Crypto →AES-GCM Text Encryptor & Decryptor
Military-grade 256-bit AES-GCM client-side text encryption with PBKDF2 salt derivation.
PBKDF2 / Password Key Hasher
Derive secure cryptographic password hashes using PBKDF2 with custom iterations, salt, and SHA-512.
HTTP Basic Auth Header Builder & Decoder
Generate standard Authorization: Basic Base64 headers from credentials or decode existing tokens.