Skip to content

Instantly share code, notes, and snippets.

@andyfowler
Created August 8, 2012 01:45
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 andyfowler/3291314 to your computer and use it in GitHub Desktop.
Save andyfowler/3291314 to your computer and use it in GitHub Desktop.
3-second tapped song vs password

Back-of-napkin thoughts prompted by https://twitter.com/soapko/statuses/233009083446349825

3-second song clip, in taps

Say the typical song is 120 BPM.

( 120BPM / 60s = 2 beats per second) * 3 seconds = 6 beats (quarter-notes)

Biggest assumption is that 6 beats in 3 seconds @ sixteenth note resolution = 24 available notes of resolution

3 possible states per note: attack, sustain, rest.

3^24 = 282,429,536,481 possible combinations

12 case-sensitive alphanumeric characters

62 ^ 12 = 3,226,266,762,397,899,821,056 possible combinations

Passphrase has 11,423,262,604x more possibilities

@andyfowler
Copy link
Author

  • It occurs to me that you don't have a full 3 bits per note: one can't sustain after a rest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment