Passphrase Generator
EFF Diceware passphrases powered by crypto.getRandomValues(). 7,776 curated words, rejection-sampled selection, honest entropy math — zero server contact.
Everything a passphrase generator should be
Most passphrase generators use Math.random() and a small word list. ShieldX uses the Web Crypto API and the full EFF Diceware list — with honest entropy math.
EFF Diceware word list
01Uses the Electronic Frontier Foundation's curated list of 7,776 words — selected for memorability, unambiguity, and minimal profanity. The gold standard for passphrase generation.
CSPRNG word selection
02Every word is chosen using crypto.getRandomValues() with rejection sampling to eliminate modulo bias. No PRNG, no Math.random() — only OS-grade cryptographic randomness.
Real entropy in bits
03Entropy is calculated as log2(7776^wordCount) — the honest mathematical measure. 6 words = 77.5 bits, 7 words = 90.5 bits, 8 words = 103.4 bits. No heuristic green bars.
Crack-time estimation
04Entropy is translated into human-readable crack time using known GPU hash rates. 77 bits ≈ 25,000 years at 10^10 guesses/sec for offline attacks.
Adjustable word count
05Choose 4 to 10 words with a slider. 4 words (~51 bits) for everyday accounts, 6 words (~77 bits) for important credentials, 8+ words for critical secrets.
Custom separators
06Join words with hyphens, spaces, dots, underscores, or a custom string. Or go separator-free with camelCase. Match any site's password policy without sacrificing entropy.
Capitalization control
07Toggle between lowercase, Title Case, or UPPERCASE. Some sites require specific casing — adapt without re-generating or compromising randomness.
Clipboard auto-clear
08Copied passphrases are automatically purged from your clipboard after 30 seconds. No lingering sensitive data for shoulder-surfers or clipboard-reading malware.
Zero network traffic
09Open DevTools and watch the Network tab stay completely empty. Generation happens in your tab — the word list is embedded, not fetched from a server.
Batch generation
10Generate up to 20 passphrases at once with identical settings. Perfect for team onboarding, service account setup, or rotating multiple credentials simultaneously.
Session history
11Recent passphrases are kept in a blurred session history — hover to reveal. Never lost between generations, never persisted to disk. Cleared when you close the tab.
Export as text
12Download your generated passphrase as a plain text file for secure storage in a password manager or encrypted vault. No metadata, no formatting — just the passphrase.
Visibility toggle
13Hide the passphrase with a single click — word tiles become masked dots. Prevents shoulder-surfing in public spaces. Toggle back instantly when you need to read it.
Spacebar to regenerate
14Press the spacebar to instantly generate a new passphrase. No mouse needed — keep your hands on the keyboard and cycle through options until you find a memorable one.
From dice rolls to passphrase in three steps
Diceware was invented in 1995 by Arnold Reinhold. The EFF updated the word list in 2016. The cryptography is simple, proven, and older than most websites.
Choose your word count
Pick 4 to 10 words. More words means more entropy: each word adds ~12.9 bits (log2(7776)). 6 words gives 77 bits — strong enough for any account.
// Entropy = log2(wordListSize^wordCount) 7776 words × 4 = 51.7 bits 7776 words × 6 = 77.5 bits 7776 words × 8 = 103.4 bits
Pick a separator and style
Choose how words are joined: hyphens, spaces, dots, or custom. Toggle capitalization. The separator doesn't affect entropy — it's purely for readability and site compatibility.
// Separator options hyphen → correct-horse-battery-staple space → correct horse battery staple camelCase → correctHorseBatteryStaple
Generate and memorize
Click generate to produce a cryptographically random passphrase. The word tiles make it easy to visualize and memorize. Copy it to your password manager with auto-clear.
// CSPRNG with rejection sampling const idx = unbiasedRandom(7776); const word = WORDLIST[idx]; // → no modulo bias, OS-grade entropy
Who needs a Diceware passphrase generator?
Anyone who needs to memorize a strong password. Passphrases are the sweet spot between security and human memory.
Memorable passwords for daily life
Stop writing down impossible strings like "K7$mP9!nQw2". A 6-word passphrase like "correct horse battery staple prism ocean" is easier to remember, easier to type, and stronger than most random passwords.
- Master password for your password manager
- Email and banking account passwords
- Wi-Fi and router admin credentials
- Device encryption passphrases (FileVault, LUKS)
Human-readable secrets for systems
Generate memorable secrets for service accounts, API tokens, and shared credentials. Passphrases are easier to communicate verbally and less prone to transcription errors than random strings.
- Service account passphrases
- Database encryption keys (wrapped)
- CI/CD pipeline shared secrets
- SSH key passphrases
Onboarding with strong defaults
Batch-generate passphrases for new team members or service accounts. Everyone starts with a strong, memorable credential instead of a weak password they'll change to something predictable.
- New hire default credentials
- Shared service account passwords
- Emergency access passphrases
- Backup authentication codes
ShieldX vs. typical passphrase generators
Many "Diceware" generators cut corners. Here's what's actually under the hood.
Passphrase generation do's and don'ts
Generating a strong passphrase is step one. Using it correctly is just as important.
Use at least 6 words for important accounts
6 words from the 7,776-word EFF list provide ~77 bits of entropy — sufficient for any online account. For password manager master passwords or encryption keys, use 8 words (103 bits).
Store passphrases in a password manager
Even memorable passphrases should be stored in a reputable manager like Bitwarden, 1Password, or KeePassXC. Human memory is fallible — don't risk lockout.
Use unique passphrases for each account
A 6-word passphrase is strong, but reusing it across accounts means a single breach compromises everything. Generate a new one for each critical account.
Use fewer than 4 words
4 words (~52 bits) is the minimum for everyday accounts. 3 words (~39 bits) is crackable in days with modern GPU rigs. Never use fewer than 4 words for any real account.
Pick your own words manually
Humans are terrible at picking random words. We gravitate toward familiar words, patterns, and themes, dramatically reducing entropy. Always use the CSPRNG generator.
Length beats complexity — for humans too
A 6-word passphrase (77 bits, 30+ characters) is both stronger and more memorable than an 8-character random password (47 bits). The math favors length, and so does your brain.
Don't reuse EFF passphrases you've seen online
"correct horse battery staple" is famous from xkcd. Using it gives you zero entropy — attackers check known passphrases first. Always generate your own with CSPRNG.
Frequently asked questions
Everything you might want to know about Diceware passphrases, the EFF word list, and browser-based cryptographic generation.
What is the EFF Diceware word list?
The Electronic Frontier Foundation published a curated list of 7,776 words specifically designed for passphrase generation. Each word corresponds to a unique 5-dice roll (6^5 = 7,776). The words were selected for memorability, unambiguity (no homophones), and minimal profanity. It's the gold standard for Diceware passphrases.
How is entropy calculated for passphrases?
Entropy = log2(wordListSize^wordCount). With 7,776 words, each word adds log2(7776) ≈ 12.9 bits. So 4 words = 51.7 bits, 6 words = 77.5 bits, 8 words = 103.4 bits. This is exact — not a heuristic. The separator and capitalization don't add entropy because they're predictable.
Are passphrases better than random passwords?
For human memorability, yes. A 6-word passphrase (77 bits) is both stronger and easier to remember than a 12-character random password (~78 bits with full charset). For stored credentials in a password manager, random passwords may be preferable since you don't need to remember them. Use passphrases when you need to memorize; use random passwords when you don't.
Is it safe to generate passphrases in a browser?
Yes. The Web Crypto API exposes crypto.getRandomValues(), which draws from your operating system's CSPRNG — the same source used for TLS handshakes. The word list is embedded in the page, so no network request is needed. Open DevTools and watch the Network tab stay empty.
What is rejection sampling and why does it matter?
When generating a random index into 7,776 words, using modulo (%) introduces a slight bias because 2^32 is not perfectly divisible by 7,776. Rejection sampling discards values that would cause bias, ensuring a perfectly uniform distribution. Without it, some words are slightly more likely to appear — a subtle weakness that compounds over many passphrases.
Does the separator affect security?
No. The separator (hyphen, space, dot, etc.) is a fixed string known to an attacker. It adds zero bits of entropy. Its only purpose is readability and compatibility with site password policies. Choose whatever separator the site accepts.
Can I use passphrases for password manager master passwords?
Absolutely — they're ideal for this. A master password must be memorized and typed frequently. A 7-word passphrase (90 bits) is strong enough to resist offline brute-force if your password manager uses a slow KDF (PBKDF2 with 600k+ iterations or Argon2id). Use 8+ words for maximum security.
Does ShieldX store or log my generated passphrases?
No. Generation happens entirely in your browser. No passphrase, no word indices, no metadata is ever sent to any server. The session history is in-memory only and is cleared when you close the tab. There is no backend to store anything.
Ready to generate memorable unbreakable passphrases?
You've got the tool — now put it to work. Explore our other security tools or read the guide on passphrase entropy to learn why words beat characters.