25% OFF High Performance Plans — Limited Time! Deal ends in:
00days
:
00hrs
:
00min
:
00sec
Developer Tools

Htpasswd
Generator

Create hashed credentials for Apache and Nginx HTTP basic authentication. Bcrypt and SHA-1 supported, all hashing done in your browser — passwords never leave the page.

Bcrypt
Apache & Nginx
100% offline
# .htpasswd entry
admin:$2y$10$N9qo8u...

# nginx / apache basic-auth
auth_basic "Restricted";
.htpasswd line

Frequently Asked Questions

Which hash should I use for .htpasswd?
Use bcrypt ($2y$). It is the strongest format Apache and Nginx support and resists brute-force far better than MD5 or SHA-1. Only fall back to SHA-1 for legacy systems.
How do I use the generated line?
Paste it into your .htpasswd file (one user per line). In Apache reference it with AuthType Basic + AuthUserFile; in Nginx use auth_basic and auth_basic_user_file.
Is my password sent anywhere?
No. Hashing runs entirely in your browser. Neither the plaintext password nor the hash is transmitted, logged, or stored.
How can I generate this on the server instead?
Use the htpasswd CLI: htpasswd -B -c /etc/nginx/.htpasswd admin. The -B flag selects bcrypt and -c creates the file (omit -c to add to an existing one).

Related Tools

Password Generator Nginx & Apache Config Redirect Generator

Protect Your Site on a VPS You Control

TextraHost Linux VPS plans start at $5.50/mo — full root, your own Apache or Nginx auth.

Call Us WhatsApp
Trusted & Certified
HostAdvice Silver — Top 25 Reseller Hosting HostAdvice — Top 25 Offshore Hosting 2026 HostAdvice — Over 99% Uptime 2025 Website Planet Feature Accredited .xyz Registrar tawk.to Partner Green hosting verified by The Green Web Foundation AbuseIPDB Contributor Badge