Privacy choices

Choose which cookies Real Random can use. You can change this at any time from Cookie Settings in the footer. Privacy Policy

Strictly necessary

Keep the site working and secure, including spam protection on forms and remembering these choices.

Always on

Analytics

Help us understand how visitors use the site, through Google Analytics.

Marketing

Let partners such as rB2B and LiveIntent identify business visitors, and measure our advertising. Turning this off opts you out of the sale or sharing of your personal information.

Real Random
Request a Demo
Orange, teal, white, and blue dice tumbling through bubbling fluid inside a sealed glass chamber

Entropy Explained

What Is Entropy in Cryptography?

Every encryption key protecting your data, payments, and logins starts life as a random number. Entropy is the raw randomness those numbers come from. Get it wrong, and everything built on top inherits the weakness.

Updated 12 min read

The Short Answer

Entropy in cryptography is the measure of true, unpredictable randomness used to generate keys, tokens, and nonces. High entropy produces keys an attacker can't guess or reproduce. Low entropy produces predictable keys that can be recreated without ever breaking the encryption algorithm.

New to the terms? Browse the entropy glossary, or measure the entropy of any text with Cryptography Academy's entropy calculator.

Key Takeaways

  • Entropy is the randomness every cryptographic key is generated from.
  • Pseudo-random generators are algorithms; with the seed, their output can be recreated.
  • Weak entropy has already exposed real keys at internet scale, without anyone breaking the math.
  • Post-quantum algorithms still depend on strong entropy. PQC doesn't fix a weak entropy source.
  • You can audit and improve entropy in your stack without replacing your crypto libraries. Start with the Entropy Scorecard.

The Stakes

Why Does Entropy Matter in Cybersecurity?

Entropy matters because encryption is only as strong as the randomness it starts from. If an attacker can guess or reproduce the random values behind a key, they don't need to break the algorithm. They recreate the key.

That's what makes entropy failures dangerous: a key generated from weak entropy still works normally. Logins succeed, TLS handshakes complete, signatures verify. Nothing looks wrong. The key just also works for anyone who can predict it.

Passwords, TLS sessions, API tokens, signing certificates, and crypto wallets all start with a random number. If that number isn't actually random, the security on top of it isn't actually secure.

Two Kinds of Random

What's the Difference Between Pseudo-Random and True Random?

A pseudo-random number generator (PRNG) uses an algorithm to produce numbers that look random but are fully determined by a starting value called a seed. A true random number generator (TRNG) measures randomness from a physical process, so there's no seed to recover and no formula to reverse.

Comparison of pseudo-random (PRNG) and true random (TRNG) number generators
Pseudo-random (PRNG)True random (TRNG)
SourceSoftware algorithmPhysical measurement
Needs a seedYesNo
ReproducibleYes, with the seed and algorithmNo, not even by the vendor
Main weaknessPredictable if the seed is weak or exposedMust be monitored for physical drift
Best forSimulations, games, non-security shufflingKey generation, signing, high-assurance crypto

Most production systems use a cryptographically secure PRNG (CSPRNG) seeded from an entropy source. That design is sound, but it moves the whole question to the seed: a CSPRNG fed weak entropy produces weak output, fast. More on seeding in how RNG seeds work, and on the bigger question in can computers generate true random numbers.

Deterministic entropy is a computation: something to predict or replay. Physical entropy is a measurement. There's no seed to recover and no equation to reverse.

Real-World Vulnerability Stories

How Has Weak Entropy Broken Real Systems?

Weak entropy has broken real systems many times, and the pattern is always the same: the encryption algorithm worked, but the randomness behind the keys was predictable.

  1. 2006 to 2008

    Debian OpenSSL

    A code change in Debian's OpenSSL package removed most of the entropy feeding its random number generator, leaving the process ID as the main variable. For about two years, SSH and SSL keys generated on Debian-based systems came from a tiny, enumerable set of possibilities. Every affected key had to be regenerated.

    Source: Debian Security Advisory DSA-1571-1 (May 2008)
  2. 2012

    "Mining Your Ps and Qs"

    Researchers scanned the public internet, collected millions of TLS and SSH keys, and found many devices had generated keys sharing prime factors. That let them compute the private keys for a measurable fraction of hosts. The root cause: embedded devices generating keys at first boot, before they'd collected enough entropy.

    Source: Heninger et al., USENIX Security 2012
Attackers didn't break the math in any of these cases. They walked around it.

The conditions behind these failures still exist: virtual machines cloned from one snapshot, IoT devices with no keyboard or disk activity to draw from, and containers spun up by the thousand. See pseudorandom passwords on IoT devices for one example.

Raising the Stakes

Does Post-Quantum Cryptography Need Better Entropy?

Yes. Post-quantum cryptography (PQC) replaces algorithms that quantum computers could break, like RSA and elliptic curve cryptography, but every PQC algorithm still needs high-quality entropy to generate keys. A post-quantum key built from weak randomness is still a weak key.

In August 2024, NIST published its first three finalized post-quantum standards: FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA). Source: NIST announcement.

That milestone started the clock on migration, and “harvest now, decrypt later” is the reason it matters today: adversaries can collect encrypted data now and decrypt it once quantum capability arrives. Background reading: what post-quantum cryptography is and TRNGs in the post-quantum era.

Real Random doesn't compete with PQC. We supply the entropy foundation PQC depends on: encryption you can trust today, ready for post-quantum standards tomorrow.

For a worked example, see PQC migration for crypto assets.

Inside the Machine

How Does a Hardware Random Number Generator Work?

A hardware random number generator measures an unpredictable physical process, converts the measurement into digital data, and conditions it into uniform random bits. Common sources include thermal noise, radioactive decay, and optical effects. Real Random measures something you can watch: dice tumbling in viscous fluid. Background reading: introduction to hardware RNGs.

CONDITIONING+ LIVE DIEHARDER TESTSENTROPY STORESINGLE-USE VALUES123456
  1. Dice Roll
  2. Optical Read
  3. Hash
  4. Live Tests
  5. Your Keys
  1. Sealed Dice Chambers

    Dice tumble nonstop in viscous fluid. Redundant chambers keep entropy flowing.

  2. LED Lighting

    Every roll is visible to the cameras and to you.

  3. Optical Readers

    Cameras capture each roll as raw pixel data. Analog in, digital out.

  4. Agitation Drive

    Stir timing is seeded with fresh entropy plus an external timestamp, so the motion can't be modeled.

  5. Conditioning and Live Testing

    Pixel data hashes into 256 or 512-bit values (about one per second), checked live by the DieHarder test suite.

  6. Entropy Store and Secure Delivery

    Single-use values, deleted on draw, delivered in under 0.1 ms over TLS 1.3.

  • Tamper-evident
  • Fail-safe shutdown
  • Dashboard + RRUA app
  • SOC telemetry
  • 99.999% uptime
  • Rack or portable edge unit

More on the thinking behind it: why the digital world needs physical entropy.

Integration

Where Does an Entropy Source Fit in Your Security Stack?

An entropy source sits underneath everything that generates keys: the operating system's entropy pool, crypto libraries, HSMs and key management systems, and your own applications. Real Random is licensed into your stack behind your firewall. You change the source, not the process.

OS Entropy Pool

Seeds /dev/random via rngd.

Crypto Libraries

OpenSSL and wolfSSL integrations.

HSM, KMS, Internal CA

High-assurance seeds where keys are born.

Apps and Key Management

APIs for whatever you build, also available as Entropy-as-a-Service.

Fallback: If the entropy feed is ever unreachable, your systems keep running on their native RNG. Nothing breaks.

Action Plan

How Do You Improve Entropy in Your Tech Stack?

You improve entropy by finding every place your systems generate keys, checking what feeds each one, measuring the quality, and adding a verifiable hardware source where it's weak. Here's the process, in order.

  1. Map where keys are generated

    List every system that creates keys or tokens: servers, VMs and containers, HSMs, KMS, internal certificate authorities, IoT fleets, and application code that calls a random function directly.

  2. Identify the entropy source behind each one

    For most Linux systems that's the kernel pool (/dev/random / getrandom()). Note anything seeded at first boot, cloned from a VM image, or running on embedded hardware with few unpredictable inputs. Those are the highest-risk spots.

  3. Check application code for non-cryptographic RNGs

    Search for calls like Math.random(), rand(), or random.random() used for tokens, IDs, or secrets. Replace them with your platform's cryptographic API.

  4. Measure entropy quality

    Test output with established suites (NIST Statistical Test Suite, DieHarder, ENT) and review your sources against NIST SP 800-90B, the standard for entropy source validation.

  5. Add a verifiable hardware source where entropy is thin

    Feed a hardware TRNG into the OS pool, HSM, or KMS so every downstream consumer benefits without code changes.

  6. Monitor continuously

    Entropy quality can drift. Run health tests on live output and alert on failures, the same way you monitor uptime.

Not sure where you stand?

Take the Entropy Scorecard

Trust, but Verify

What Is Real Random?

Real Random produces entropy the same way the DICEMASTER did: physical dice suspended in viscous fluid, tumbling chaotically, captured by high-speed computer vision. The Brownian motion of the fluid, the collisions between dice, the rotation trajectories: these are extracted as multiple independent dimensions of entropy and combined into a continuous, verifiable output stream.

The result is not modeled randomness. It is not amplified noise. It is observable, physical, sovereign entropy, independently validated to prove it.

0.999996 bits per byte

Verified by Fourmilab ENT testing. The theoretical maximum is 1.0.

0.003001 serial correlation

Near zero, consistent with independent output bits. The ideal is 0.0.

NIST Test - Passed SP 800-22 Rev. 1a

NIST's statistical test suite for validating the randomness of RNG output used in cryptography.

Gartner® Cool Vendor in Data Security, 2025

Read the announcement

Independently evaluated by Rochester Institute of Technology, with testing across the DieHarder, Fourmilab ENT, and NIST Statistical Test Suite. NIST SP 800-90B entropy source validation is in process at atsec.

Read the full test results (PDF)

Gartner, Cool Vendors in Data Security 2025: Securing Your Data in the Age of GenAI and Quantum Computing, 25 August 2025. Gartner does not endorse any vendor, product or service depicted in its research publications. GARTNER is a registered trademark and service mark, and COOL VENDORS is a trademark of Gartner, Inc. and/or its affiliates in the U.S. and internationally and are used herein with permission. All rights reserved.

Common Questions

Entropy and Cryptography FAQ

What is entropy in cryptography?

Entropy in cryptography is the measure of true, unpredictable randomness used to generate keys, tokens, and nonces. The more entropy behind a key, the harder it is to guess or reproduce.

What is entropy in cybersecurity?

In cybersecurity, entropy refers to the randomness that protects secrets like passwords, session keys, and API tokens. Low entropy makes those secrets predictable, which lets attackers recreate them without breaking any encryption.

What is the difference between a TRNG and a PRNG?

A TRNG measures randomness from a physical process, while a PRNG calculates numbers from an algorithm and a seed. PRNG output can be recreated if the seed is known; TRNG output can't. Deeper comparison: random vs. pseudorandom number generators.

What happens if entropy is weak?

Weak entropy produces predictable keys, so attackers can recreate private keys without breaking the algorithm. The Debian OpenSSL bug and the 2012 "Mining Your Ps and Qs" research both exposed real keys this way.

Can software generate true random numbers?

No. Software runs on deterministic hardware, so it can only collect randomness from outside events or physical sources. On VMs, containers, and embedded devices those events are often scarce, which is why hardware entropy sources exist.

Does post-quantum cryptography fix weak entropy?

No. PQC algorithms resist quantum attacks on the math, but they still need strong entropy to generate keys. Weak entropy undermines PQC just as it undermines RSA or ECC.

How do I check the entropy quality of my systems?

Start by mapping where keys are generated, then test output with suites like the NIST Statistical Test Suite, DieHarder, or ENT, and compare sources against NIST SP 800-90B. The Entropy Scorecard is a quick way to see where you stand.

What is Entropy-as-a-Service?

Entropy-as-a-Service (EaaS) delivers true random data over a secure API, so applications can use hardware-grade entropy without installing hardware. More in what is Entropy-as-a-Service.

Is Real Random's entropy independently tested?

Yes. Rochester Institute of Technology independently evaluated Real Random's entropy source using NIST statistical test methodologies, and Fourmilab ENT testing measured 0.999996 bits per byte with a serial correlation of 0.003001. NIST SP 800-90B entropy source validation is in process at atsec. Full results: Real Random test results summary.

Can someone predict the next output, either with classical computing or a quantum computer?

The system captures hashed pixel data from physical dice positions, not simple pip values. An entropy-fed feedback loop continuously varies pump speed and agitation patterns, and health tests validate output quality before concatenation and delivery. Because the entropy originates from a physical, non-deterministic process rather than a mathematical formula, there is no seed to reverse-engineer and no algorithm to model. This is what makes physical entropy fundamentally different from software-based alternatives.

If the dice are visible, why do you still need testing to prove the randomness?

Observability is one layer of trust. You can see that the physical process is genuinely chaotic, which is something no sealed hardware module or software algorithm can offer. But for regulated sectors, visual verification alone is not sufficient. Statistical testing and the ESV certification provide the formal, repeatable proof that auditors and compliance teams require. The two work together: you can see the source, and you can independently verify its output.

Get Started

See True Entropy in Action

Book a 20-minute walkthrough with a Real Random team member. Watch the dice tumble, see live test results, and talk through integration with your stack: OpenSSL, wolfSSL, HSM, KMS, or a custom API.

  • Live technical demo, no slide deck
  • Reference architectures for OS pools, HSMs, and app-layer key generation
  • Evaluation hardware for qualified security and cryptography teams

Want to keep reading? Browse more resources.