5.2 Coding, Decoding & Rule-Based Substitution
Key Takeaways
Coding and decoding questions assess a recruit's capacity to identify and apply systematic character substitutions, positional transpositions, and rule-based translations.
Letter-shift ciphers apply either uniform displacements (Caesar shifts of or ) or progressive variable shifts () requiring rapid conversion between letters and alphabetic numbers.
Opposite-letter substitution pairs letters from opposing ends of the alphabet whose numeric indices sum to 27 (, , ), forming symmetric cryptographic pairs.
Artificial language puzzles are solved through comparative sentence cross-referencing, isolating distinct vocabulary definitions by identifying shared code tokens across translated statements.
5.2 Coding, Decoding & Rule-Based Substitution
In military communication, security protocols demand that sensitive operational data—including patrol routes, operational codewords, tactical coordinates, and equipment status—be transmitted using structured encryption systems. Coding and decoding items, a common feature of logical reasoning tests, evaluate an applicant's ability to decipher rule-based symbol substitutions, detect geometric and positional transpositions, and decode artificial languages under timed pressure. These questions do not require prior knowledge of formal intelligence ciphers; rather, they test acute attention to detail, systematic deduction, and the disciplined execution of transformation algorithms without introducing personal assumptions.
Letter-Shift Ciphers (Uniform and Progressive Systems)
Letter-shift ciphers, historically derived from the classical Caesar cipher, substitute each letter of an original plaintext message with another letter located a fixed or progressive number of positions away in the English alphabet.
1. Fixed Uniform Shifts
In a uniform shift cipher, every letter undergoes an identical displacement ( or positions). When a shift advances past the end of the alphabet (), it wraps cyclically back to the beginning ():
Consider an operational example where the plaintext word MARCH is encrypted as PDUFK:
Every character undergoes a uniform shift of . To encode the word TRACK using this same cipher:
- The encrypted output is WUDFN.
2. Progressive and Variable Shifts
More complex test items vary the shift value progressively based on the letter's position within the word. Common variations include:
- Incremental Step Shifts: The first letter shifts by , the second by , the third by , and so forth.
- Alternating Shifts: Odd positions shift forward () while even positions shift backward ().
Note
Consider the word BRAVO encrypted with a progressive shift ():
- Encrypted ciphertext: CTDZT.
When encountering an unfamiliar shift puzzle, calculate the numerical displacements of the first three letters immediately. If the displacements are identical (e.g., ), it is a uniform shift; if they increase (e.g., ), the pattern is progressive.
Opposite-Letter Complement Ciphers
A common cipher type on reasoning tests is the opposite-letter or complementary substitution cipher. In this system, each letter is replaced by its paired counterpart situated at the equidistant opposite position of the alphabet.
The Mathematical Principle of 27
Because the alphabet comprises 26 letters, pairing the first letter with the twenty-sixth, the second with the twenty-fifth, and so on, creates a fixed mathematical relationship:
Comprehensive Opposite-Letter Key
| Pair | Forward Index | Complement Index | Memory Mnemonic |
|---|---|---|---|
| A – Z | 1 | 26 | A to Z |
| B – Y | 2 | 25 | Boy |
| C – X | 3 | 24 | Complex |
| D – W | 4 | 23 | Dew |
| E – V | 5 | 22 | Evening (EV) |
| F – U | 6 | 21 | Full (FU) |
| G – T | 7 | 20 | Ghana Training |
| H – S | 8 | 19 | High School |
| I – R | 9 | 18 | Inter-Regional |
| J – Q | 10 | 17 | Jack - Queen |
| K – P | 11 | 16 | Keep |
| L – O | 12 | 15 | Love (LO) |
| M – N | 13 | 14 | Man |
If BORDER is coded using this cipher: , , , , , , producing YLIWVI. Memorizing these 13 reciprocal pairs eliminates the need to sketch out the entire alphabet on scratch paper.
Direct Symbol & Number Substitutions
In direct substitution systems, characters are mapped directly to arbitrary numerals or punctuation symbols without an algebraic progression. Each unique plaintext letter retains a constant token assignment throughout the puzzle.
Identifying Direct Substitutions
Direct substitution is signaled when candidates are given two sample encoded words and asked to determine the code for a third word composed exclusively of letters from the samples.
For example, given:
- GUARD is coded as
- POINT is coded as
To find the code for RADIO:
- Extract from GUARD:
- Extract from GUARD:
- Extract from GUARD:
- Extract from POINT:
- Extract from POINT:
- Assembled code for RADIO:
Tip
Always verify that repeated letters across both sample words share the identical symbol or number. If the letter appears in both sample words but corresponds to different digits, the cipher is governed by positional arithmetic rather than direct assignment.
Positional Transposition Ciphers
Transposition ciphers do not alter the identity of letters; instead, they rearrange the positions of characters according to a geometric permutation rule.
- Full Word Inversion: Plaintext is written in reverse order. For example, SOLDIER becomes REIDLOS.
- Split-Half Inversion (Even Lengths): A word is bisected into two equal halves, and each half is reversed independently. For example, PATROL (6 letters) divides into PAT and ROL. Inverting each half yields TAP and LOR, forming TAPLOR.
- Odd-Length Center Pivot: In odd-length words, the central letter remains fixed while flanking segments are inverted. For example, DEFENCE (7 letters): the central letter is E (position 4). Inverting the first half (DEF FED) and second half (NCE ECN) while keeping E stationary produces FEDEECN.
- Adjacent Pair Swapping: Successive pairs of letters swap places (, , ). For example, SIGNAL becomes ISNGLA (; ; ).
Artificial / Fictitious Language Decoding
Fictitious language puzzles present 3 or 4 short phrases written in an imaginary tongue accompanied by their English translations. The word order in the artificial language does not necessarily correspond to the English word order. To solve these, apply the method of comparative elimination.
Step-by-Step Tactical Walkthrough
Given the three operational statements:
"mor tik kex"means"reinforce northern flank""tik dal zep"means"secure northern bridge""kex zep run"means"patrol flank bridge"
Step 1: Cross-reference Statement 1 and Statement 2:
- Common code token:
"tik" - Common English word:
"northern" - Deduction:
"tik"="northern"
Step 2: Cross-reference Statement 1 and Statement 3:
- Common code token:
"kex" - Common English word:
"flank" - Deduction:
"kex"="flank"
Step 3: Resolve Remaining Vocabulary in Statement 1:
- With
"tik"(northern) and"kex"(flank) accounted for, the sole remaining code word is"mor", and the sole remaining English word is"reinforce". - Deduction:
"mor"="reinforce"
Step 4: Cross-reference Statement 2 and Statement 3:
- Common code token:
"zep" - Common English word:
"bridge" - Deduction:
"zep"="bridge"
Step 5: Resolve Remaining Words in Statements 2 and 3:
- In Statement 2,
"dal"remains"dal"="secure". - In Statement 3,
"run"remains"run"="patrol".
This structured extraction isolates every vocabulary pair without guesswork.
Cipher Diagnostic Decision Table
| Cipher Category | Key Identifying Feature | Primary Scratchpad Action | Common Distractor Traps |
|---|---|---|---|
| Uniform Shift | All characters advance by a constant step () | Compute and confirm on | Forgetting alphabet wrap-around past |
| Progressive Shift | Shift increments by position () | Compute shifts for first 3 positions | Assuming uniform shift from only testing position 1 |
| Opposite Complement | Paired letters sum to 27 () | Check against the Rule of 27 | Confusing reverse alphabet with simple negative shift |
| Direct Substitution | Target word composed of sample letters | Build direct letter-to-symbol lookup table | Searching for mathematical formula when mapping is direct |
| Transposition | Letters in cipher identical to plaintext | Trace original character index positions | Assuming letters were replaced rather than rearranged |
| Fictitious Language | Multi-word phrases with English equivalents | Cross-compare statements to find common words | Assuming 1-to-1 word order matching English grammar |
In a military communications cipher, the word CADET is encoded as DCGIY. Following this identical transformation rule, how is the word ORDER encoded?
PTGJV
QSGIX
PSFHW
PTGIW
In an encryption drill, the word BARK is encoded as YZIP using an opposite-letter complementary substitution cipher. Using this identical cipher system, how is the word CAMP encoded?
XZKO
XZNK
WZNL
YZOK
In an artificial code language: "kip dor lam" means "check every vehicle", "lam sut rof" means "stop that vehicle", and "dor bix sut" means "check and stop". Which code word means "every"?
dor
lam
kip
sut
Sections you finish are checked off in the contents.