Password Generator
A random password at the length and character mix you set.
Generate an Apache .htpasswd line for HTTP Basic Auth. It uses the legacy unsalted SHA-1 scheme, which works for compatibility but is 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 all happens in this tab, and 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.
Use it to add or update a Basic Auth user without running the htpasswd command-line tool, when all you need is 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. That is the 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. Apache supports it for legacy compatibility, but it is weak. For new setups, use bcrypt (htpasswd -B), which is salted and deliberately slow.
Your browser processes the username and password on your device and makes no network request with them.
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.
The tool keeps nothing 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, that is enough.
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. This tool does not produce it; use the htpasswd command with the bcrypt option.
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, since bcrypt 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). This legacy scheme is weak, and bcrypt is the modern recommendation.
A random password at the length and character mix you set.
An entropy estimate in bits, with tips to make it stronger.
Whole numbers in any range from a cryptographic source.
The SHA-256 hash of any text, computed in your browser.
Random words joined into a passphrase you can remember.
The MD5 checksum of any text.
Your browser generates and checks everything locally, so nothing secret is sent. No account needed.