What this tool does
The HTPasswd Generator builds a ready-to-use .htpasswd entry for HTTP Basic Authentication. Enter a username and password, pick an algorithm, and copy the resulting username:hash line straight into your Apache or Nginx configuration.
How it works
The hashing runs entirely in your browser. APR1 is Apache’s portable MD5-based algorithm (the htpasswd -m default) and is the recommended choice for compatibility. SHA-1 produces the {SHA} format from htpasswd -s. A cryptographically random salt is generated locally for APR1, and the output matches the real htpasswd binary byte-for-byte.
Security note
Basic Auth sends credentials with every request, so always serve protected directories over HTTPS. For the strongest password hashing, generate bcrypt entries server-side with htpasswd -B. Plain-text entries are offered only for legacy or trusted setups and should be avoided.
Privacy
Everything runs locally in your browser. Your password is never uploaded, logged, or stored.