Password Generator
Cryptographically secure passwords powered by crypto.getRandomValues(). Real entropy, honest crack-time, zero server contact.
Everything a password generator should be
Most online generators use Math.random() and show a green bar. ShieldX uses the Web Crypto API and shows you the actual math.
Cryptographically secure generation
01Every character is drawn from crypto.getRandomValues() — the same CSPRNG that powers TLS handshakes. Never Math.random(), never a PRNG.
Real entropy in bits
02Strength is calculated as log2(charset^length), not a heuristic green bar. You see the actual number of guesses an attacker would need.
Crack-time estimation
03Entropy is translated into human-readable crack time using known GPU hash rates. 95 bits ≈ 2 million years at 10^10 guesses/sec.
Full character control
04Toggle uppercase, lowercase, numbers, and symbols independently. Exclude ambiguous characters like l, 1, O, 0 for readability.
Clipboard auto-clear
05Copied passwords are automatically purged from your clipboard after 30 seconds. No lingering sensitive data for shoulder-surfers.
Zero network traffic
06Open DevTools and watch the Network tab stay completely empty. Generation happens in your tab, not on a server.
From entropy to password in three steps
The process is simple, but the cryptography behind it is the same standard that protects every HTTPS connection on the internet.
Choose your character set
Toggle which character types to include. More character types means more entropy per character, but length matters more.
// Charset options lowercase = abcdefghij... uppercase = ABCDEFGHIJ... numbers = 0123456789 symbols = !@#$%^&*()...
Set the password length
Pick anywhere from 8 to 128 characters. 16 characters with a full charset gives ~105 bits of entropy — strong enough for any account.
// Entropy = log2(charset^length) 62 chars × 16 length = 95.3 bits 94 chars × 16 length = 105.0 bits 94 chars × 24 length = 157.5 bits
Generate and copy
Click generate to produce a cryptographically random password. Copy it to your clipboard with auto-clear, then paste into your password manager.
// Web Crypto API — the secure way const buf = new Uint32Array(16); crypto.getRandomValues(buf); // → unbiased, OS-grade randomness
Who needs a secure password generator?
Anyone with an online account. The question isn't whether you need one — it's whether the one you're using is actually secure.
Strong passwords for every account
Stop reusing passwords. Generate a unique, high-entropy password for each account and store it in a password manager. Every password is independent — a breach of one never compromises another.
- Email, banking, and social media accounts
- Master passwords for password managers
- Wi-Fi and router admin credentials
- Two-factor authentication backup codes
Secure secrets for apps and APIs
Generate API keys, database passwords, JWT signing secrets, and encryption keys — all with cryptographic randomness that meets industry standards.
- API key generation for microservices
- Database connection strings
- JWT signing secrets
- Encryption keys for AES-GCM
Shared service credentials
Generate strong shared credentials for service accounts, CI/CD pipelines, and infrastructure access. Distribute via secure channels, not spreadsheets.
- Service account passwords
- CI/CD pipeline secrets
- SSH key passphrases
- VPN and remote access credentials
ShieldX vs. typical online generators
Most "secure" password generators cut corners you can't see. Here's what's actually under the hood.
Password generation do's and don'ts
Generating a strong password is only step one. Using it correctly is just as important.
Aim for at least 80 bits of entropy
For everyday accounts, 80 bits (about 13 characters with full charset) is sufficient. For critical credentials like password manager master passwords, target 128 bits.
Use a password manager
Generated passwords are too complex to memorize. Store them in a reputable password manager like Bitwarden, 1Password, or KeePassXC.
Reuse passwords across accounts
If one service is breached, attackers will try the same password on every other service. Generate a unique password for each account.
Trust browser-generated passwords blindly
Some browser built-in generators don't show entropy or allow charset control. Verify what you're actually getting.
Length beats complexity
Doubling your charset adds 1 bit per character. Doubling your length doubles your total entropy. A 20-character lowercase password (93 bits) beats an 8-character mixed password (47 bits).
Never use Math.random() for passwords
Math.random() uses a deterministic PRNG (xorshift128+). If the internal state is known, all outputs are predictable. Only crypto.getRandomValues() is suitable for security.
Frequently asked questions
Everything you might want to know about browser-based password generation and the Web Crypto API.
Is it safe to generate passwords 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. This is fundamentally different from Math.random(), which uses a predictable PRNG. Open DevTools and watch the Network tab stay empty while you generate.
What makes a password "strong"?
Strength is measured in bits of entropy: log2(charset^length). More entropy means more possible combinations an attacker must try. 80 bits is good for everyday accounts, 128 bits for critical credentials. The key insight: entropy grows exponentially with length but only logarithmically with charset size.
Should I include symbols in my passwords?
Symbols add ~0.6 bits per character compared to alphanumeric. They help, but adding 4 more characters of lowercase gives more entropy than adding symbols to a shorter password. If a site limits length, use symbols. If not, go longer.
What is clipboard auto-clear?
After you copy a generated password, it is automatically removed from your clipboard after 30 seconds. This prevents shoulder-surfers or clipboard-reading malware from accessing it if you step away from your device.
Can I generate multiple passwords at once?
Yes. The tool supports batch generation — produce several passwords in one click, each independently random. Useful when setting up multiple accounts or rotating credentials for a team.
Does ShieldX store or log my generated passwords?
No. Generation happens entirely in your browser. No password, no hash, no metadata is ever sent to any server. There is no backend to store anything — the tool is a static page with client-side JavaScript.
Ready to generate unbreakable passwords?
You've got the tool — now put it to work. Explore our other security tools or read the guide on password entropy to learn why length beats complexity.