Secure Password Generator
Generate cryptographically secure passwords with real-time strength analysis and WiFi QR codes
Secure Password Generator
Create cryptographically secure passwords with real-time strength analysis using the zxcvbn algorithm.
Access: /tools/developers/password-generator
Overview
The Password Generator creates random, secure passwords using the Web Crypto API and provides detailed strength analysis via zxcvbn. This is a 100% client-side tool - no AI, no network requests.
Key features:
- 4 generation modes - Random, memorable, PIN, passphrase
- zxcvbn analysis - Pattern detection and crack time estimates
- WiFi QR codes - Generate QR codes for WiFi password sharing
- Customizable - Length, character sets, exclusions
- One-click copy - Instant clipboard access
- No storage - Nothing saved or transmitted
Generation Modes
1. Random Password (Default)
Cryptographically random characters from selected character sets.
Example: K7$mP2xN@qL9vF4h
Best for:
- Website accounts
- API keys
- Database passwords
- Encryption keys
2. Memorable Password
Combines random words with numbers and symbols for easier recall.
Example: Correct-Horse-Battery-42!
Best for:
- Master passwords
- Passwords you need to remember
- Shared credentials (temporary)
3. PIN Code
Numeric-only codes of specified length.
Example: 847293
Best for:
- Banking PINs
- Device unlock codes
- Two-factor backup codes
4. Passphrase
Multiple random words separated by chosen delimiter.
Example: umbrella quantum bicycle fortress
Best for:
- Master passwords
- Encryption passphrases
- High-security accounts
- Password manager vaults
Character Set Options
Available Sets
| Option | Characters | Count |
|---|---|---|
| Uppercase | A-Z | 26 |
| Lowercase | a-z | 26 |
| Numbers | 0-9 | 10 |
| Symbols | Special characters (32 types) | 32 |
Exclusion Options
| Option | Excluded | Reason |
|---|---|---|
| Ambiguous | 0, O, l, 1, I | Hard to distinguish visually |
| Similar | [], , (), /\ | Confusing in some fonts |
| Custom | User-defined | Specific requirements |
Length Recommendations
| Use Case | Min Length | Recommended |
|---|---|---|
| Low-security accounts | 8 | 12 |
| General accounts | 12 | 16 |
| Financial/sensitive | 16 | 20+ |
| Master passwords | 20 | 24+ |
| Encryption keys | 24 | 32+ |
Strength Analysis (zxcvbn)
Scoring System
| Score | Rating | Crack Time | Visual |
|---|---|---|---|
| 0 | Very Weak | < 1 second | Red |
| 1 | Weak | < 1 hour | Orange |
| 2 | Fair | < 1 day | Yellow |
| 3 | Strong | < 1 year | Light Green |
| 4 | Very Strong | > centuries | Green |
Analysis Includes
Pattern Detection:
- Dictionary words
- Common passwords
- Keyboard patterns (qwerty, 123456)
- Repeated characters
- Sequences (abc, 321)
- Personal info patterns (dates, names)
Crack Time Estimates:
- Online attack (throttled)
- Online attack (unthrottled)
- Offline slow hash (bcrypt)
- Offline fast hash (MD5)
Entropy Calculation:
- Bits of entropy
- Character space size
- Effective length
Example Output
Generated Password
K7$mP2xN@qL9vF4h
Strength Analysis
Score: 4/4 (Very Strong)
Entropy: 98.2 bits
Crack Time: centuries (offline fast hash)
Patterns: None detected
Character Analysis:
- Uppercase: 6 (37.5%)
- Lowercase: 4 (25%)
- Numbers: 4 (25%)
- Symbols: 2 (12.5%)
Warnings: None
Suggestions: None - this password is strong
WiFi QR Code Feature
Generate QR codes to share WiFi passwords without typing.
How to Use
- Enter WiFi network name (SSID)
- Enter password
- Select security type (WPA/WPA2/WPA3)
- Generate QR code
- Scan with phone to connect
QR Code Format
WIFI:T:WPA;S:NetworkName;P:YourPassword;;
Security Types
| Type | Use Case |
|---|---|
| WPA3 | Latest, most secure |
| WPA2 | Most common |
| WPA | Legacy devices |
| WEP | Not recommended (insecure) |
| None | Open networks |
Example QR Output
Generates a scannable QR code that:
- Works on iOS (Camera app)
- Works on Android (Camera or WiFi settings)
- Auto-connects to network
- No password typing required
How to Use
Basic Password Generation
- Select mode - Random, memorable, PIN, passphrase
- Set length - Drag slider or enter number
- Choose characters - Enable/disable character sets
- Click Generate - New password appears
- Check strength - Review analysis
- Copy - One-click copy to clipboard
WiFi QR Code
- Switch to WiFi tab
- Enter SSID - Your network name
- Enter password - WiFi password
- Select security - WPA2, WPA3, etc.
- Generate QR - Scannable code appears
- Download/Print - Save for guests
Technical Details
| Specification | Value |
|---|---|
| AI Model | None (pure calculation) |
| Random Source | Web Crypto API (crypto.getRandomValues) |
| Strength Analysis | zxcvbn library |
| QR Generation | qrcode library |
| Storage | None - client-side only |
| Network Requests | None |
Cryptographic Security
// Uses cryptographically secure random
const array = new Uint32Array(length);
window.crypto.getRandomValues(array);
This provides:
- True randomness (not pseudo-random)
- Suitable for cryptographic use
- OS-level entropy source
- Unpredictable values
Password Policy Compliance
| Standard | Requirements | This Tool |
|---|---|---|
| NIST 800-63B | 8+ chars, no complexity rules | Configurable |
| PCI DSS | 7+ chars, alphanumeric | Supported |
| HIPAA | Strong, unique passwords | Score 3+ |
| SOC 2 | Complex, rotated regularly | Score 4 |
| ISO 27001 | Appropriate for data sensitivity | All modes |
| GDPR | "Appropriate security measures" | Score 3+ |
Best Practices
For Personal Use
- Minimum 16 characters
- Include all character types
- Use unique password per site
- Store in password manager
- Enable 2FA where possible
For Systems/Servers
- Minimum 24 characters
- Random mode only
- No dictionary words
- Rotate per security policy
- Store in secrets manager
For WiFi
- Minimum 12 characters
- Mix character types
- Change periodically
- Use WPA3 if supported
- Don't reuse other passwords
Use Cases
Account Setup
Generate strong passwords for new accounts.
Password Rotation
Create new passwords for scheduled updates.
API Keys & Tokens
Generate secure API tokens and secrets:
32-char random: wX9$kL2mN7pQ4rS1tU6vY0zA3bC5dE8f
Encryption Passphrases
Create strong encryption keys:
Passphrase: umbrella quantum bicycle fortress mountain
WiFi Guest Access
Generate and share WiFi via QR:
- Create strong WiFi password
- Generate QR code
- Print/display for guests
- No password disclosure
Development/Testing
Generate test credentials:
- Database passwords
- Service account keys
- Test user passwords
Security Notes
- Client-Side Only - Passwords never leave your browser
- No Storage - Nothing saved or logged
- Crypto Random - Uses secure random generator
- No Network - Works completely offline
- Open Algorithm - zxcvbn is open-source and auditable
What This Tool Doesn't Do
- Store passwords
- Send data to servers
- Track generated passwords
- Remember your choices
- Access your clipboard history
Limitations
- Not a password manager - Use dedicated software for storage
- No sync - Passwords not saved across devices
- Browser-dependent - Requires modern browser with Web Crypto API
- zxcvbn patterns - May not detect all weak patterns
Privacy & Security
- 100% client-side - No data transmitted
- No storage - Nothing persisted
- No tracking - Usage not logged
- No cookies - No persistent data
- Works offline - Full functionality without internet
Your generated passwords are never seen by anyone but you.