Password Generator
Password Generator computed locally with Web Crypto — your secrets never leave the page.
Generate an Apache .htpasswd line for HTTP Basic Auth in your browser. Honest note: it uses the legacy unsalted SHA-1 scheme — fine for compatibility, weak by modern standards.
Your browser is preparing the tool. It runs 100% locally.
Enter a username and password and the tool builds an Apache .htpasswd line for HTTP Basic Auth: the username, then {SHA} followed by the Base64 of the password's SHA-1 hash. It is ready to paste into a password file. Be aware that the {SHA} scheme is unsalted SHA-1 — included for legacy compatibility but weak by modern standards, where bcrypt is recommended. It runs entirely in your browser; nothing is uploaded.
This tool generates a single line for an Apache .htpasswd file — the credential store behind HTTP Basic Authentication. It takes a username and password and outputs the line in the {SHA} format that Apache understands, so you can drop it straight into your password file.
It is the quick way to add or update a Basic Auth user without running the htpasswd command-line tool, handy when you just need a line to paste into a server config.
The password is hashed with SHA-1 using the browser's cryptography, and the raw digest is Base64-encoded. The tool then assembles the line as the username, a colon, the marker {SHA}, and that Base64 digest — the exact format Apache reads for this scheme.
When a visitor logs in, Apache hashes the password they enter the same way and compares it to the stored value. The catch is that the {SHA} scheme uses a plain, unsalted SHA-1: there is no per-password salt and no slowness, which is why it is considered weak today.
line = username + : + {SHA} + base64( SHA-1( password ) )
Apache reads this from a .htpasswd file for HTTP Basic Authadmin / changeme → admin:{SHA}+pvrmeQCmtWmYVOZ57uuITVghrM=The {SHA} scheme is an unsalted SHA-1. It is supported for legacy compatibility but is weak — for new setups, bcrypt (htpasswd -B) is the recommended, salted and slow alternative.
Your username and password are processed entirely on your device, with no network request, so nothing is uploaded.
Because the hashing is local, the password is not transmitted while you generate the line. Still, store the resulting file securely and serve the protected area over HTTPS, since Basic Auth sends credentials with each request.
Nothing persists between sessions — close the tab and the inputs and output are gone.
The line is in the correct {SHA} format that Apache reads, so it works for HTTP Basic Auth as-is. For getting a user into a password file quickly, it does exactly what is needed.
The security is the weak point. The {SHA} scheme is an unsalted SHA-1: every instance of the same password produces the same digest, which makes it vulnerable to precomputed dictionary and rainbow-table attacks. It is supported for compatibility, not because it is strong.
There is no salt and no slowness, the two properties that make password hashes hard to crack. A modern setup should use bcrypt instead, which this tool does not produce — for that, the htpasswd command with the bcrypt option is the route.
Basic Auth itself sends the username and password with every request, encoded but not encrypted. Always serve a Basic-Auth-protected area over HTTPS so those credentials are not exposed on the network.
Generate a line to paste into an Apache .htpasswd file.
Password-protect a folder without running the command-line tool.
Produce a {SHA} entry for a system that expects it.
See how a .htpasswd credential line is built.
For a strong entry, generate a bcrypt line with the htpasswd command (the -B option) or a bcrypt-capable tool — it is salted and slow. Always put HTTPS in front of a Basic-Auth-protected area, whatever the hash.
Builds a username and {SHA} entry (Base64 of an unsalted SHA-1 of the password); honest that this legacy scheme is weak and that bcrypt is the modern recommendation.
Password Generator computed locally with Web Crypto — your secrets never leave the page.
Use Password Strength Checker for stronger security hygiene — private, instant and free.
Random Number Generator computed locally with Web Crypto — your secrets never leave the page.
SHA-256 Hash Generator computed locally with Web Crypto — your secrets never leave the page.
Passphrase Generator computed locally with Web Crypto — your secrets never leave the page.
Use MD5 Hash Generator for stronger security hygiene — private, instant and free.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.