Cracking the Adventure Time cipher
aaronrandall.com
aaronrandall.com
Like, imagine a cipher where you shift each letter once (modulo 'Z') for each character of the text thus far (e.g. "HELLO WORLD" becomes "HFNOS BUYTM"). I'm sure someone has a name for this that I don't know. This seems immune to frequency analysis (unless you have such a large ciphertext that you begin to notice recurring strings with 1/26th the probability of a monoalphabetic cipher), but still trivial enough that an experienced cryptanalyist should crack it immediately. My question is, how would they do it? What's the "next step" if frequency analysis fails?
Key: ABCABCABCABCA... Plaintext: MYNAMEISAARON... Ciphertext: MZPANGITCASQN...
At first glance, frequency analysis would be useless against this ciphertext. But if you can work out the key length (in this case, 3), you can group every 3rd character together and then perform frequency analysis on each group, as we know each group as been encrypted with the same key, making frequency analysis relevant again.
Set #1 starts out with a simpler problem than Pigpen, and then a problem that's just barely harder than Pigpen, but that requires actual code and whose solution will also help you break repeated-nonce AES-CTR.
For anyone else looking for another one along the same lines, this is a good one too: http://overthewire.org/wargames/natas/natas0.html
it was close. but the trick is the frequencies on short messages only give you probabilities that a certain mapping is true.
but those probabilities are enough to shorten the potential mappings significantly (i.e. e is probably e or t, g is probably e or t). Combine that with a word match (does the result contain stop words such as - it not the etc)
and bam, game over.
There's an automated program that does quite well: http://quipqiup.com/
Pasting in his first two strings (the "standard pigpen" letters) finds the solution in 5 seconds.
Would love to read more about how that tool works :)
So don't trust that a system doesn't have a simple solution because an automated solver like doesn't provide a correct answer.
VGYURYPEDFNCEPGEWELLPVNWRDCNFGMGXQEPPRGCBFIGLEMG. EQPMEIGQNVBAGBTFEGMSYNRKMNWEPBLWBYPSNWMQNFBDWEQVYNRCBFIGLEMG
=>
HEY GUYS I PROMISE I WILL SHOW UP MORE NEXT ISSUE MARCELINE. ITS NICE TO HAVE AFRIEND YOU KNOW IS ALWAYS DOWN TO RAP WITH YOU MARCELINE WEHXLHT I PROMITE IS IYYTWOSLP MORE FEUNITTLEMARVEYIFE. IN T FIVE NO WAKE AGRIEF CHOLD FOSITAY SAHT COSF NO RAPS IN WHOLMARVEY I FEI looked for a while and http://www-i6.informatik.rwth-aachen.de/unravel/ seems to be state-of-the-art.
http://www.fabiensanglard.net/Ghost_in_the_Wires/index.php
By the way, the book is excellent!
That's great to hear, hope your kids enjoy. Thanks!
Of course, assuming you're not using a really super duper weak cipher like ROT13. Just moderately weak.