The Chairman is back with another challenge, this one probably more on the harder end. Although once you get your head around how to solve it, you’ll probably find it pretty easy. Your challenge is to solve a cryptogram like this, presumably using PowerShell.
$crypto = @"
g - 2 5 R e t o p c 7 -
h v 1 Q n e l b e d E p
"@
Inside this string block is a hidden message. To solve or decrypt, you need a pair of numbers, X and Y. Starting in the upper left you would start counting X number of characters, starting at 1. Once you have the first letter then count Y number of characters for the 2nd letter. Then X number of characters for the 3rd letter and so on. The end result will be a word or phrase with no spaces. But it should be recognizable to you
In this sample, the solution is 1,5. You would start counting at 1 for the first letter. Then count 5 for the next, 1 for the next and so on.

Do you see the hidden message?
Ready for a challenge? Find the hidden message in this cryptogram. You’ll have to discover the key intervals. It could be 2,6 or 3,8 or 6,2. To make it easier, the cryptogram is written so that you do not have to loop around.
$crypto = @" P k T r 2 s z 2 * c F - r a z 7 G u D 4 w 6 U # g c t K 3 E @ B t 1 a Y Q P i c % 7 0 5 Z v A e W 6 j e P R f p m I ) H y ^ L o o w C n b J d O S i 9 M b e r # ) i e U * f 2 Z 6 M S h 7 V u D 5 a ( h s v 8 e l 1 o W Z O 7 l p K y J l D z $ - j I @ t T 2 3 R a i k q = F & w B 6 c % H l y "@
Once you discover the correct intervals, the message should be self-evident.
In order to give everyone a chance to solve this, please don’t submit any answers as comments. They won’t be published. But you are welcome to submit links to your work and solution.
Solved in 12 lines. Sure that can be done better.
Without giving the answer away those who find it will probably say “I do”.
I would say you found the hidden message. You should post a link so people can learn how you solved it. 12 lines sounds like a very elegant solution.
Yes we do 🙂
Best I got
https://gist.github.com/dacarroll/cf56728863eb911f94be90150d20374b
Nice one!
Solved in more than 12 lines…
🙂
Coding purists would be probably appalled, but this is my quick and dirty solution: https://gist.github.com/ddotchev/59bcb37f1c35f4ca0dfeb91767219461
🙂
https://gist.github.com/irwins/03e4b082b40a0aa4cb27cb6d3153272e
I took another aproach to find out the message and the appropriate intervals. I chose to let powershell loop it’s way to the solution.
https://github.com/Kungtroll/Random_stuff/blob/master/Iron%20Scripter%20Cryptogram
And yes, I do, and occasionally I even dream it.
Definitely fastest way, leave $x constant and $y– on while loop to grind down the cryptograph to the correct phrase.
I’m not great at cryptograms, so my solution involved testing a lot of permutations.
In response, I do, mostly.
https://gist.github.com/thedavecarroll/74e370e243ba8847db0b05b329fe2e24
So here is my solution: https://gist.github.com/Factorization/de94cbf6781e588b28a851bf820439ab
I have tried for brute force decode. Multiple combinations with output . Please let me know if any improvements needed . Below is the link .
https://gist.github.com/samikshajuneja/f6ed2ae3715f349ba8874d43852db527
Wow! Thanks for making such a fun game out of this!
https://gist.github.com/smaglio81/de64c322238cb6828bd17a1893d091fb
Not the perfect one, but still working 🙂
https://github.com/bulax/IronScripter/blob/master/Iron_Cryptogram.ps1
Not 12 lines… but reasonably close?
https://gist.github.com/Donair2099/3dd79bf9dd89194cb7f325bc134c8a3b
I took the same approach as others and just let Powershell loop through all solutions, outputting the intervals and the strings produced. (Yes, I do)
https://gist.github.com/camusicjunkie/b171ca0254f0919107d8dfd0b660bb3a
I must have been testing the original code in a stale environment because as soon as I tried it in a fresh Powershell session I was getting tons of errors. I was improperly looping through the interval values. I’ve updated the loop code and it works as expected now.
https://www.linkedin.com/feed/update/urn:li:activity:6553367099769782272
Great stuff! I am enjoying these!
https://gist.github.com/0ryant/0a196e6fada1d15652dcc634a59c51db
Used a loop to check the content, then refined the script once I knew the vars.
Cool! Iron Scripter all year! A dream come true.
Thanks, Jeffery!
5 lines: https://gist.github.com/Agazoth/e83b2dba56c22b67c9375954f37f84a7
Yes! Iron Scripter all year. A dream come true!
5 lineish: https://gist.github.com/Agazoth/e83b2dba56c22b67c9375954f37f84a7
A few suggestions I would like to pass on after getting the answer:
– The answer is not provided; you will have to loop (manually or in code) to find the interval.
– Treat characters at the beginning of a lower line as connected to the one above it. In the example, the answer is found with characters 1,6,7,12,13,18,19,24 not with characters 1,6,7 and 12 from lines 1 and 2.
I got the solution quickly, but finding the interval really threw me for a loop. I would take “It could be 2,6 or 3,8 or 6,2. To make it easier, you do not have to loop around.” out of the challenge description as it almost implies the solution is one of those 3 and you gave us a head start (this made me really second guess my code for a while).
The example also gave me the impression like I might need to either process each line in the script block separately then combine the results or connect them and process them like a single collection. I thought this because both methods of coding against a connected list and coding against each line of the string block worked with the example. See my second suggestion above for help with this thought.
Best of luck,
-G$
https://github.com/Dalcron/IronScripter/blob/master/JUN_28_2019_Challenge.ps1