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
Bcrypt ($2y$) format
Apache MD5-APR1 ($apr1$) format
Legacy SHA-1 ({SHA}) format
Instant one-click copy
How to Use This Tool
- Enter the username and password.
- Choose your hash algorithm: Bcrypt ($2y$), SHA-1 ({SHA}), or MD5-APR1 ($apr1$).
- Click 'Generate .htpasswd Entry' and copy the resulting string into your .htpasswd file.
Why Use This Tool
- Protects staging websites, admin panels, and internal documentation.
- Supports modern Bcrypt format for Nginx and Apache 2.4+.
Pro Tips
- 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.