Security & Privacy11 min read• Published October 22, 2026

Hardware Entropy & Diceware Mathematics: Why Pseudo-Random Passwords Fail Security Audits

An in-depth cryptographic study of Shannon entropy, Diceware wordlist distributions, and hardware TRNG entropy sources used to generate passwords mathematically impervious to brute-force cluster attacks.

ER
Elena Rostova
Principal Security Researcher, Digital Forensics Group
Zero-Knowledge Analysis
Associated Client-Side Utility

Ready to test in-browser? Launch Hardware Diceware Password Generator

Generate mathematically uncrackable passphrases using hardware entropy pools and Diceware lists. Zero server transmission, 100% on-device execution.

Launch Web Tool

The Math.random() Catastrophe: PRNG Predictability and Linear Congruential Generators

Password generation is the first line of defense for critical cloud accounts and cryptographic root keys. Yet, thousands of utility websites generate passphrases using standard `Math.random()`.

In modern JavaScript runtimes, `Math.random()` is typically powered by the xorshift128+ algorithm. While xorshift128+ is exceptionally fast for simulations and graphics animations, it is **not cryptographically secure**. Given a tiny sequence of generated values, an attacker can reconstruct the internal 128-bit state of the generator in milliseconds. Any password generated through `Math.random()` can be retroactively predicted and cracked.

In contrast, the W3C Web Cryptography API provides `crypto.getRandomValues()`. This function hooks directly into kernel-level hardware entropy pools: - **macOS / iOS**: `/dev/urandom` seeded by Apple Secure Enclave thermal noise and ring oscillator drift. - **Linux**: `getrandom()` syscall fed by hardware interrupts, keystroke jitter, and CPU timing variations. - **Windows**: CNG (Cryptography Next Generation) BCryptGenRandom.

By mandating `crypto.getRandomValues()`, every byte of entropy originates from physical hardware quantum unpredictability.

CWE-338 Warning

Using cryptographically weak pseudo-random number generators (PRNG) like Math.random() for credential creation is classified under Common Weakness Enumeration CWE-338.

Diceware Mathematics: Calculating Real-World Bits of Shannon Entropy

The Diceware methodology, conceived by Arnold Reinhold in 1995, generates memorable yet cryptographically uncrackable passphrases by picking words from a standardized wordlist using dice rolls.

The mathematical formula for the entropy of an alphabet or wordlist of size N where each item has uniform probability is: `H = log2(N)` bits per selection.

For a Diceware list containing 7,776 unique words (6^5): `H = log2(7776) = 12.9249 bits per word`.

- A 4-word passphrase yields: 4 × 12.925 = **51.7 bits** (breakable by state actors). - A 6-word passphrase yields: 6 × 12.925 = **77.5 bits** (secure against specialized GPU clusters). - An 8-word passphrase yields: 8 × 12.925 = **103.4 bits** (mathematically impossible to crack within the lifespan of the universe).

Compare this to a typical 12-character random string like "Tr0ub4dor&3", which humans struggle to memorize and frequently write down. A 6-word Diceware passphrase like "correct horse battery staple" provides vastly superior entropy while remaining effortlessly memorizable.

Modern GPU Hashcat Attack Velocities: NTLM, bcrypt, and Argon2id

To understand entropy requirements, one must study modern password-cracking hardware. A single server chassis equipped with 8 NVIDIA RTX 4090 GPUs can compute: - **NTLM hashes**: ~800,000,000,000 hashes per second (800 GH/s). - **SHA-256**: ~200,000,000,000 hashes per second (200 GH/s). - **bcrypt (cost 12)**: ~120,000 hashes per second. - **Argon2id**: ~15,000 hashes per second.

Against an NTLM hash dump, an 8-character password consisting of mixed letters and numbers (72 bits maximum search space) is exhausted in **under 45 minutes**. An 8-word Diceware passphrase (103 bits of entropy) would require 10^31 hash calculations—taking billions of years even if every supercomputer on Earth participated in the attack.

Interactive Sandbox: Shannon Entropy & GPU Crack Estimator

Hardware TRNG
Shannon Entropy:77.6 Bits
Brute-Force Resistance:1,800 Years (8x RTX 4090 cluster)

Frequently Asked Questions

Are passwords generated by TiBox ever sent to a server or saved to cookies?▼

Never. Password generation is strictly executed within your local browser memory using crypto.getRandomValues(). Nothing is ever saved, logged, or sent across any network.

What is the recommended passphrase length for master passwords?▼

We recommend a minimum of 6 words (approx. 77.5 bits of entropy) for personal password vaults, and 7 to 8 words (approx. 90-103 bits of entropy) for cryptographic root keys and cold storage wallets.

Why are spaces or hyphens between words useful?▼

Delimiters expand the effective character set of the passphrase and prevent dictionary attack tools from merging adjacent word stems during rule-based permutation attacks.

Production Web Utility

Perform this operation securely with Hardware Diceware Password Generator

No uploads, no cookies, no tracking. Air-gapped safe and executes entirely inside your browser.

Open Hardware Diceware Password Generator

Related Engineering Guides