Secret Generator
Passwords, passphrases, API keys, encryption keys and UUIDs from your browser’s cryptographic random generator — with the strength in bits.
How to use
- Pick what you need: password, passphrase, key / token or UUID.
- Adjust the length or preset; the strength in bits updates as you go.
- Copy it — the clipboard is cleared after 30 seconds.
At least one character from each ticked set. Symbols skip quotes, backslashes, spaces and brackets, so the password pastes safely into shells and config files.
Result
Made by your browser’s cryptographic random generator (crypto.getRandomValues). Nothing is stored or sent; copies clear from the clipboard after 30 seconds.
How strong is strong enough
Strength is measured in bits of entropy: the base-2 logarithm of how many secrets the generator could have produced. Every extra bit doubles an attacker’s work. Around 80 bits is enough for a password stored with a slow hash; API keys, session tokens and encryption keys should have at least 128 bits, and HMAC secrets such as an HS256 key 256 bits. The number shown assumes the attacker knows exactly how the secret was made — the only honest way to count.
For a password manager’s master password, six or seven words from the EFF list (about 77 or 90 bits) balance strength and typing.
Where the randomness comes from
Every value comes from your browser’s cryptographic random generator (crypto.getRandomValues), never Math.random. Characters and words are picked with rejection sampling, so no character is more likely than another, and secrets are only generated after the page loads in your browser — none exist in the page’s HTML.
Choosing a format
Passphrases from the EFF word list are easiest to type and remember. Base64url keys fit in URLs and headers; hex suits configuration files; Base32 is what authenticator apps expect for TOTP seeds. A short prefix such as myapp_live_ makes leaked keys easy to recognise for secret scanners. UUIDs are identifiers, not secrets: version 7 even reveals when it was created.
Common questions
How long should a password be?
Aim for at least 80 bits of entropy for important accounts: about 14 random characters from all four character sets, or 7 words from the EFF wordlist. The generator shows the bits for every setting.
Are passphrases safer than passwords?
At the same entropy they are equally strong, and much easier to type and remember. Six random words give about 77 bits — good for a password manager’s master password.
How long should an API key or JWT secret be?
At least 32 random bytes (256 bits). For HS256, RFC 7518 requires a key at least as long as the hash output.
Known limitations
- Store secrets in a password manager or vault, not in chat or tickets.
- Strength assumes the attacker knows exactly how the secret was made.
- UUIDs are identifiers, not secrets; v7 reveals when it was made.
- Browser extensions can read any page — use a private window for sensitive data. How the lock works
Related reading on CipherMind
Standards & references
- NIST SP 800-63B — passwords (opens in a new tab)
- EFF Dice-generated passphrases (opens in a new tab)
- RFC 7518 §3.2 — HMAC key size (opens in a new tab)
- RFC 6238 — TOTP (opens in a new tab)
- RFC 9562 — UUIDs (v4, v7) (opens in a new tab)
- MDN — Crypto.getRandomValues() (opens in a new tab)