Challenges › Cryptography

Mend the Cipher

easy · 20 XP · flag · free · solves: 5

Alice sent Bob what she called a simple Caesar cipher, the oldest shift in the book. Bob tried every shift from one to twenty-five and got nothing but gibberish. Then he noticed something. The letters were not all shifted by the same amount. Each one had moved a little further than the one before it, according to its position in the message. It was still Caesar, just corrupted by a small rule. Once you know the rule, the whole message falls back into place. Can you mend the cipher and read it?

We've intercepted a secret message, but it appears to be encrypted with a variation of Caesar cipher. The encryption seems to use a different shift for each character based on its position. The shift for each character is calculated as: shift = (position_index + 5) % 26. Can you recover the original message?

"Xnkjtrx yt ymj hqzg! Ymj kqfl nx KQFL{h4jx4w_b1ym_y2bnxy}"

Submit it in STURSEC{} format

Tags: Cryptography

Try next