How to find the rule
- Word above its code CAT above DBU.
- Write the positions A = 1 ... Z = 26.
- Find each change C to D is +1, A to B is +1, T to U is +1.
- Same change everywhere? That is the rule; if not, look for a pattern in the changes.
Coding and decoding
-
Coding
- Word to code, using the rule
- Rule +1: CAT becomes DBU
-
Decoding
- Code back to the word
- Apply the opposite operation
- Move back 1: KPF becomes JOE
Write alphabet positions under the word and its code. The same change on every letter is the rule.
- Compare each letter with its code letter and use positions to see the shift.
- Test the rule on every letter, not only the first.
- To decode, apply the opposite operation.