Skip to content

Instantly share code, notes, and snippets.

@radekk
Created June 7, 2017 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radekk/3b63da09ed73b9982f0974692eacf11a to your computer and use it in GitHub Desktop.
Save radekk/3b63da09ed73b9982f0974692eacf11a to your computer and use it in GitHub Desktop.
Shannon's entropy for sample strings
╔════════════════════════════════════════════╦═════════╗
║ String ║ Entropy ║
╠════════════════════════════════════════════╬═════════╣
║ john.doe+test@example.com ║ 3.8937 ║
║ https://auth0.com/this-is-test-url-4575812 ║ 4.2728 ║
║ THIS_IS_NOT_A_SECRET_ONLY_A_PROPERTY_KEY ║ 3.6464 ║
║ /etc/init.d/rc4/script.sh ║ 3.5133 ║
║ button[value="test1337"] ║ 3.9183 ║
╚════════════════════════════════════════════╩═════════╝
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment