CSPRNG Password Generator & Shannon Entropy Calculator
Generate unbiased cryptographically random passwords via Web Crypto (crypto.getRandomValues) and compare theoretical pool entropy (L × log₂R) against realized character-class entropy. 2026 Baseline (Theoretical Pool Entropy (L × log₂R)): 118.0 Bits (Strong Offline-Resistant (80–127 bits)) | Generated CSPRNG Password (Unbiased): X7@HgvvsS40;>kTu%..
Maintained by: OmniTool Systems & Web Engineering Desk
Last Reviewed: 2026-10-20
Documentation: Formula & Source Policy
Presets:
Theoretical Pool Entropy (L × log₂R)
118.0 Bits (Strong Offline-Resistant (80–127 bits))
Generated CSPRNG Password (Unbiased)
X7@HgvvsS40;>kTu%.
Keyspace & Realized Class Entropy
2^118 (Pool: 94 chars • Realized: 118.0 bits)
Live Sensitivity Scale (Password Character Length)
Output Comparison
0.75× Conservative
91.8 Bits (Strong Offline-Resistant (80–127 bits))
1.00× Active
118.0 Bits (Strong Offline-Resistant (80–127 bits))
1.50× Aggressive
177.0 Bits (High Cryptographic Margin (≥128 bits))
Generated dynamically via unbiased Web Crypto (crypto.getRandomValues) rejection sampling. Never reuse static example passwords from documentation.
Scenario Comparison & Benchmark Table (Password Entropy & CSPRNG Generator)
Compare how scaling the primary input changes results (click any row to load into calculator):
| Password Character Length | Theoretical Pool Entropy (L × log₂R) | Generated CSPRNG Password (Unbiased) | Keyspace & Realized Class Entropy |
|---|---|---|---|
| 9 | 59.0 Bits (Weak — Vulnerable to Offline Cracking (<60 bits)) | 1;rBsWnI[ | 2^59 (Pool: 94 chars • Realized: 59.0 bits) |
| 14 | 91.8 Bits (Strong Offline-Resistant (80–127 bits)) | tbp)hMvX,5UV|A | 2^92 (Pool: 94 chars • Realized: 91.8 bits) |
| 18 (Baseline) | 118.0 Bits (Strong Offline-Resistant (80–127 bits)) | R@J]&!j{`%B)FH_F1\ | 2^118 (Pool: 94 chars • Realized: 118.0 bits) |
| 23 | 150.8 Bits (High Cryptographic Margin (≥128 bits)) | X\;x$Cz.l.}Bt?Q8#h\j9S3 | 2^151 (Pool: 94 chars • Realized: 150.8 bits) |
| 27 | 177.0 Bits (High Cryptographic Margin (≥128 bits)) | i5j$9.*y`)>~8K@@dj^ZP>wHx(N | 2^177 (Pool: 94 chars • Realized: 177.0 bits) |
| 36 | 236.0 Bits (High Cryptographic Margin (≥128 bits)) | \:b={tngrjdxHb(;<^G>&sN7g~Kp'T1Deg:) | 2^236 (Pool: 94 chars • Realized: 236.0 bits) |
Mathematical Formula & Step-by-Step Guide
Primary mathematical equation used by this model:
Theoretical Pool Entropy (bits) = L × log₂(R); Unbiased Sampling: x < floor(2³² / R) × R via crypto.getRandomValues
- Select your target Password Character Length (L) and Character Pool Size (R: 10=digits, 26=lowercase, 36=lower+digits, 52=letters, 62=alphanumeric, 94=all printable ASCII).
- The generator constructs an exact R-character alphabet and draws each character independently using Web Crypto (crypto.getRandomValues) with rejection sampling (discarding 32-bit integers ≥ floor(2^32 / R) × R to eliminate modulo bias).
- Compare Theoretical Pool Entropy (E = L × log₂R, which measures uniform random selection from the chosen pool) with Realized Character-Class Entropy based on the character sets actually present in the generated string.
Primary Standards & References: NIST Special Publication 800-63B (Digital Identity Guidelines — Memorized Secrets) & W3C Web Cryptography API (crypto.getRandomValues CSPRNG)
Information-theoretic entropy (L × log₂R) measures resistance against uniform brute-force guessing when generated via an unbiased CSPRNG; human-chosen words or predictable patterns have significantly lower effective entropy.
Information-theoretic entropy (L × log₂R) measures resistance against uniform brute-force guessing when generated via an unbiased CSPRNG; human-chosen words or predictable patterns have significantly lower effective entropy.
Frequently Asked Questions — Password Entropy & CSPRNG Generator
How is theoretical password entropy different from realized character-class entropy?
Theoretical pool entropy (E = L × log₂R) measures the uncertainty of the random generation process when every character is drawn uniformly and independently from an R-character alphabet via a CSPRNG (e.g., 18 chars from 94 printable ASCII = 118.0 bits). Realized character-class entropy inspects which character classes (lowercase, uppercase, digits, symbols) actually appeared in a specific sample string. Never use static example passwords from guides; always generate a fresh random string in your browser.
How does unbiased rejection sampling with crypto.getRandomValues work?
Simple modulo arithmetic (randomUint32 % R) introduces slight statistical bias when R does not evenly divide 2^32. Our generator computes the largest multiple of R below 2^32 (floor(2^32 / R) × R) and rejects any random 32-bit value above that threshold, guaranteeing a strictly uniform distribution across all R characters.
What entropy bit threshold is recommended for modern offline-resistant passwords?
Under modern cryptographic guidance, 60–79 bits provides moderate protection against rate-limited online attacks, 80–127 bits provides strong resistance against offline GPU/ASIC hash cracking (such as bcrypt/Argon2id), and 128+ bits (e.g., 20 characters from the full 94-character printable ASCII pool = 131.1 bits) provides a high cryptographic safety margin.
Popular Scenarios & Quick-Lookup Models
Reference Matrix • 2026 Edition
/8 CIDR Subnet Mask (10.0.0.0/8 Class A)
16,777,214 Hosts →
/12 CIDR Subnet Mask (172.16.0.0/12 RFC1918)
1,048,574 Hosts →
Chmod 640 (-rw-r-----) Config Permission
-rw-r----- →
Chmod 660 (-rw-rw----) Group Read/Write
-rw-rw---- →
Chmod 770 (-rwxrwx---) Group Admin Dir
-rwxrwx--- →
Chmod 555 (-r-xr-xr-x) Immutable Binary
-r-xr-xr-x →
/10 CIDR Subnet Mask (100.64.0.0/10 CGNAT)
4,194,302 Hosts →
/14 CIDR Subnet Mask (255.252.0.0 VPC)
262,142 Hosts →
Chmod 711 (-rwx--x--x) Execute-Only Dir
-rwx--x--x →
Chmod 751 (-rwxr-x--x) Web Root Mode
-rwxr-x--x →
Chmod 500 (-r-x------) Read/Exec Binary
-r-x------ →
Chmod 666 (-rw-rw-rw-) World-Writable Audit
-rw-rw-rw- →