module

Flaw::Entropy

Class methods

shannon(s : String) : Float64

Shannon entropy in bits/char. A uniform 64-char alphabet tops out near 6. Crypto-random 32-char keys typically score ~4.5+. Words and placeholders score < 3.5.

Source