✓ bcrypt cost factor: 10 · APR1 compatible with Apache · SHA for Nginx
📘 What is .htpasswd?
.htpasswd is a flat-file used to store usernames and passwords for basic HTTP authentication. This tool generates entries in the correct format using secure algorithms like bcrypt, APR1, and SHA.
❓ Frequently Asked Questions
Is this generator safe to use?
Absolutely. All hashing is performed locally in your browser using JavaScript. Your password never leaves your device.
Which algorithm should I choose?
bcrypt is the most secure and recommended for modern systems. APR1 (MD5) is for legacy Apache compatibility. SHA algorithms are often used with Nginx.
How do I use the generated string?
Copy the line and append it to your .htpasswd file. Each line represents one user. Use the "Download" button to get a ready-to-use file.
Where should I place the .htpasswd file?
For security, store it outside your website's document root (e.g., /etc/nginx/.htpasswd or /home/user/.htpasswd).
Can I use this for Nginx?
Yes! Nginx supports apr1, bcrypt (with auth_basic), and SHA algorithms. Select the appropriate one for your server.
What does the password strength bar mean?
It evaluates length, character variety, and complexity to encourage strong passwords.