Pantha du Prince sends you a secret message hidden within a string of nonsense. You know that the real message is periodic within the garbage and that he's partial to the number three.
Find Pantha's hidden message to you by taking periodic substrings.
panthas_message = "Tkxhwbiscscu vfbmwlgzirlsnysqr"
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Best way to solve this problem is by analyzing the question. The question provides three hints -
Secret message hidden within a string of nonsense. We can be sure now that Caesar cipher or alternatives which involve replacement of characters are no used.
The real message is periodic within the garbage. Now we can be sure that the actual message is just distributed among the string. Since no words make sense in the text by themselves, we assume that the words are separated into characters and distributed periodically in the text. At this point we can use a combination of bruteforce and dictionary attacks directly together to crack this problem easily. However one more hint is given which needs to be preferably analyzed first.
He's partial to the number three. Since we know that the characters are distributed periodically, it's worth giving a try to see if any three characters picked periodically from the text makes any sense.
Here's the code -
Aha! We found the answer!