On the Subject of the Composite Spinning/Jumping Leapfrog Orphanage CM

A machine that knows no bounds when it comes to ciphers.

From the Off-White Cipher module by TandyCake, Dicey, and Diffuse.

First an orphanage must be opened. The orphanage consists of a 5×5 grid. Initially the orphanage starts off as the uninteresting grid featured below.

ABCDE
FGHIJ
KLMNO
PQRST
UVWYZ

Take the 4 letters on screen 1. These are your orphans. They will enhance and modify the orphanage according to their personalities. Each letter is the first name of an orphan.

For each orphan in order, find its shape in the below tables. Rotate this shape 180 degrees about its center to translate the shaded cells to new positions.

Annie Bartholomew James Quimshire Crusty McGoblin Denzel Evanie
Fletcher Glubtubbis Wepple Hilbert Isma Jub-Jub
Kontraction Ljubljana Mustard Nicholas Orphanius
Pleasant Park Queen Elizabeth II Rhojus Sal Vulcano Tariq
Undertale Victoria Wankel X Æ A-12 Yonkers
Zzz_W33DM4St3R44_zzZ

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.

Example 1

Encrypted Word: JEQVUU
Screen 1: PFRC
Screen 2: VVQDJR
Using Encrypt Rules

ABCDE
FGHIJ
KLMNO
PQRST
UVWYZ
P→
A B N D L
FGHIJ
K E M C O
PQRST
UVWYZ
F→
ABNDL
F G T S J
K E M C O
P Q R I H
UVWYZ
R→
ABNDL
F Q P S J
M E K C O
T G R I H
UVWYZ
C→
ABNDL
F I R G J
O E K C M
T S P Q H
UVWYZ

JE → NU → UN
QV → OR → RO
UU → LL

UNROLL + VVQDJR → UNROLL

Decrypted Word: UNROLL

Example 2

Encrypted Word: HFHGKMW
Screen 1: HBSQ
Screen A: 3
Screen 2: SCFHTUL
Using Decrypt Rules

ABCDE
FGHIJ
KLMNO
PQRST
UVWYZ
H→
ABCDE
R G P I J
M L K N O
H Q F S T
UVWYZ
B→
ABCDE
RGPIJ
M L Y W O
H Q S F T
U V N K Z
S→
A B N V E
R F P I J
M L Y W O
H Q S G T
U D C K Z
Q→
ABNVE
K F P I J
G L Y H O
W Q S M T
U D C R Z

HFHGKMW + 3 → HFGKMW

HF → EC
GK → AU
MW → ST

ECAUST + 3 + H → ECHAUST

ECHAUST + SCFHTUL → EXHAUST

Decrypted Word: EXHAUST