Security & Passwords

htpasswd / bcrypt Generator

Generate an Apache/Nginx htpasswd line with a bcrypt or SHA-1 hash.

Basic-auth credentials for Apache & Nginx

An .htpasswd file holds username:hash lines that Apache or Nginx check for HTTP Basic authentication. This generates a line you can paste in — pick bcrypt, the modern default (Apache's htpasswd -B), which is deliberately slow to resist brute force; the cost factor sets how slow (higher = stronger but more CPU per login). SHA-1 is offered for legacy configs but is weak — avoid it for anything new.

Generated locally, but mind the workflow

Hashing happens entirely in your browser — the password is never sent anywhere — which is safer than the many sites that hash server-side. Still, for production prefer running htpasswd on the server itself so the plaintext never leaves it, and protect the .htpasswd file so it can't be served. Basic auth sends credentials on every request, so only use it over HTTPS.

These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.