Cybersecurity & CryptographyInformation Theory⭐ 22 Stars Project

Quantifying Cryptographic Strength: Shannon Entropy & NIST 800-63B Defense

How we combined Claude Shannon's 1948 mathematical information theory with NIST password guidelines to detect hardcoded secrets and estimate brute-force resistance against 100 GH/s GPU clusters.

Quick Summary / Direct Answer: Heuristic password complexity rules (e.g. requiring symbols and digits) fail to measure real resistance against modern 100 GH/s GPU cracking rigs. By applying Shannon's information entropy E = L · log₂(R) alongside NIST SP 800-63B pattern penalties (repetition, sequences, dictionary terms), the Cybersecurity Risk Analyzer computes an exact bit-metric of randomness and projects realistic offline brute-force attack durations.
SV
Soham Vyas· IIT Jodhpur
November 2026
5 min read

1. The Mathematics of Information Entropy

Claude Shannon defined information entropy as the average rate at which information is produced by a stochastic source of data. For a string of length L drawn from an alphabet of size R:

E = L · log₂(R)

In practical vulnerability analysis, we classify the character pool R dynamically:

  • Numeric only: R = 10 (log₂(10) ≈ 3.32 bits/char)
  • Alphanumeric lower: R = 36 (log₂(36) ≈ 5.17 bits/char)
  • Full mixed case + numbers: R = 62 (log₂(62) ≈ 5.95 bits/char)
  • Base64 / Symbols: R = 94 (log₂(94) ≈ 6.55 bits/char)

2. GPU Cluster Brute-Force Estimation

Modern distributed password-cracking rigs equipped with multiple NVIDIA RTX 4090 GPUs can compute approximately 100 Billion hashes per second (100 × 10⁹ hashes/sec for NTLM/MD5).

The expected time to recover a secret with total combination space S = R^L is given by:

T(seconds) = (R^L / 2) / (100 × 10⁹)

Under NIST 800-63B standards:

  • Critical (< 35 bits): Crackable in milliseconds to seconds.
  • Moderate (35 – 60 bits): Vulnerable within hours or days of distributed cracking.
  • Strong (> 60 bits): Computationally intractable (centuries to millennia).

Test Live Inside the Interactive Playground

Calculate the exact Shannon entropy, NIST grade, and brute-force time for any token or password in real time.

Primary Sources & Security Standards

1. Shannon, C. E. (1948)
"A Mathematical Theory of Communication". Bell System Technical Journal, 27(3), 379–423. Foundational formulation of entropy as a measure of information uncertainty.
2. NIST Special Publication 800-63B
Grassi, P. A. et al. (2020). "Digital Identity Guidelines: Authentication and Lifecycle Management". National Institute of Standards and Technology. Recommendation for length over complexity composition rules.
3. Cybersecurity Risk Analyzer Repository
Soham Vyas. Open-source Python implementation. 22+ Stars on GitHub.
https://github.com/vyassoham/Cybersecurity-Risk-Analyzer
Share & Discuss This Paper

Found this writeup insightful?

Academic Citation & Reference

Vyas, S. (2026). "Quantifying Cryptographic Strength: Shannon Entropy & NIST 800-63B". Indian Institute of Technology (IIT) Jodhpur. Available at: https://www.soham.lol/blog/shannon-entropy-cybersecurity/