Skip to main content

Module entropy

Module entropy 

Source

Functions§

is_high_entropy
Returns true if the string looks like a high-entropy secret. Requires minimum 16 chars and entropy > 4.5 bits/char.
shannon_entropy
Calculate Shannon entropy of a string. High entropy (> 4.5) often indicates random/secret values.