Momma says to play fair

Description

Hello C-Team,

We received an encrypted message from deep space. We think that someone is trying to smuggle a flag away from Omni-Flags. Decrypt the following message to get us one step closer to success:

Here is the message: nEctTfwcH8P08nv4w{K0jT3Zn2K2A88k{Y

Good luck, HQ

Not Fair >:(

We are given a key table

TIME

Also encoding code, which I have added annotations with ###

To decrypt, we must do the reverse of the encryption purpose by considering every pair of characters in the ciphertext

  1. If the two letters are not in the same row or column, shift them to the letter that's the same column of the other, while keeping the same row

  2. If the two letters are in the same column, shift them to the letter that's one row up

  3. If the two letters are in the same row, shift them to the letter that's one column to the left

  4. Remove any dummy "X"s that were added in, either at the end or between two same letters

Code can be written to do this, however I did it manually

Flag

magpieCTF{L34rn_H0w_T0_Pl4y_F41r}

Last updated