Htpasswd Generator
Generate .htpasswd lines using SHA-1 or plain text.
Credentials
Generated .htpasswd lines
SHA-1 format ({SHA} — supported by Apache & Nginx)
Plain text (for reference only — never deploy this)
{SHA} is a fast, unsalted hash — fine for quick internal use but weak against offline cracking. For production basic-auth files prefer bcrypt (htpasswd -B), which isn't available via Web Crypto and must be generated with the Apache htpasswd CLI or an equivalent bcrypt library.
About the Htpasswd Generator
Create .htpasswd entries for HTTP Basic Authentication using the Web Crypto SHA-1 digest format supported by Apache and Nginx, plus a plain-text reference line. Bcrypt output isn't available via Web Crypto — use the Apache htpasswd CLI for production-grade hashing.
Examples
Generate a line
admin / hunter2Output
admin:{SHA}bNsgu5C8...Related tools
CORS Config Generator
Security
Generate CORS headers/config for Nginx, Apache, Express, or Workers.
CSP Builder
Security
Build a Content-Security-Policy header from per-directive sources.
JWT Inspector
Security
Decode a JWT and audit its claims for common issues.
Password Strength Checker
Security
Estimate password entropy, crack time, and get actionable advice.
Robots.txt Security Checker
Security
Scan robots.txt for accidental disclosure of sensitive paths.
Secret Scanner
Security
Scan pasted code or text for likely leaked secrets.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser