After performing 4 rotations, the resulting grid is the used orphanage.
If there is a number on screen A, take out the letter at that position in the encrypted word. Set aside this letter to be put back in at a later step. Split the encrypted word into pairs of letters. Depending on which instruction is required, apply it to each pair of letters.
If the Submit Button is white, follow the instructions under Encrypt Instructions. Otherwise follow the instructions under Decrypt Instructions.
Encrypt Instructions
- Find the Nth pair of letters in the orphanage.
- If the pair of letters are the same, the encrypted pair is two of the letter diametrically opposite in the matrix.
- Otherwise, make the 2nd letter jump directly over the 1st letter on the Orphanage such that the path taken by Letter 2 has it’s midpoint located at Letter 1.
- Then make Letter 1 jump over this acquired letter in the same way. Wrap around the orphanage if needed (all orphanages are torodial).
- Finally swap the 2 letters, reversing the order of the letter pair.
Decrypt Instructions
- Find the Nth pair of letters in the orphanage.
- If the pair of letters are the same, the encrypted pair is two of the letter diametrically opposite in the matrix.
- Otherwise, make the 1st letter jump directly over the 2nd letter on the Orphanage such that the path taken by Letter 1 has it’s midpoint located at Letter 2.
- Then make Letter 2 jump over this acquired letter in the same way. Wrap around the orphanage if needed (all orphanages are torodial).
Finally, if you took out a letter, insert that letter back into position equal to the number on screen A. If any of the letters on screen 2 match at the same position as any of the letters of your encrypted word, replace that letter with a X. You should now have an decrypted word.