7.2 Coding, Decoding & Substitution Ciphers
Key Takeaways
Monoalphabetic substitution ciphers maintain fixed one-to-one character mappings, where reverse complementary pairs strictly obey the algebraic summation constant .
Variable and progressive shift ciphers advance the transformation index by an incrementing parameter (such as or alternating ), preventing naive single-shift Caesar analysis.
Positional letter-to-number coding schemes evaluate words through positional summation, scalar multipliers, letter-count weighting, or distinct consonant-vowel partition rules.
Fictitious language substitution puzzles are resolved systematically through set intersection and matrix comparison, isolating unique word-code correspondences by cross-referencing multiple linguistic statements.
7.2 Coding, Decoding & Substitution Ciphers
Cryptography is central to military command and control. From transmitting secure tactical call-signs over high-frequency combat net radio to verifying challenge-and-reply authentication matrices in field operations, officers must comprehend how alphabetic and numeric symbols are encrypted, obfuscated, and deciphered. On the Ghana Armed Forces (GAF) Officer Cadet Written Examination, coding-decoding questions test candidates' structured analytical deduction, working memory, and symbolic agility under tight time limits.
Letter-to-Letter Substitution Systems
In letter-to-letter coding, letters in an original message (plaintext) are transformed into target letters (ciphertext) following a deterministic rule. The primary challenge is identifying whether the shift is static, progressive, complementary, or structural.
1. Fixed Shifts (Caesar Ciphers)
In a fixed-shift cipher, every letter in the alphabet is displaced forward or backward by a constant integer offset :
- If ,
ATTACKbecomesDWWDFN(A D, T W, C F, K N). - If ,
PATROLbecomesNYRPMJ(P N, A Y, T R, R P, O M, L J).
2. Variable & Progressive Shift Ciphers
Modern aptitude exams avoid trivial fixed shifts in favor of variable algorithms where the shift parameter changes with each letter's index position:
- Incrementing Step Shifter ():
- Word:
GUARD - Letter 1:
- Letter 2:
- Letter 3:
- Letter 4:
- Letter 5:
- Resulting Ciphertext:
HWDVI
- Word:
- Alternating Direction Shifter (): The operation alternates between forward and backward movements, such as .
3. Reverse Complementary Pairings (The Rule of 27)
In a complementary substitution cipher, each letter is replaced by its diametrical counterpart in the reversed alphabet. Two letters are complementary if and only if their numerical positions sum to exactly :
| Pair | Positions | Mnemonic Anchor | Pair | Positions | Mnemonic Anchor |
|---|---|---|---|---|---|
| A — Z | A to Z | G — T | Ghana Telecom / GT Road | ||
| B — Y | Boy / By | H — S | High School | ||
| C — X | Coxswain / CX | I — R | InfraRed / IR | ||
| D — W | Dew / Down | J — Q | Jack-Queen | ||
| E — V | EVening / Love | K — P | KeeP / KP | ||
| F — U | Full / Fuel | L — O | LOve | ||
| M — N | Man / Military-Navy | — | — | — |
Worked Example — Reverse Complementary Coding:
If DEFENSE is coded as WVUVMHV, how is ATTACK coded?
Check established pairs:
D(4) <-> W(23) [4 + 23 = 27]
E(5) <-> V(22) [5 + 22 = 27]
F(6) <-> U(21) [6 + 21 = 27]
E(5) <-> V(22) [5 + 22 = 27]
N(14) <-> M(13) [14 + 13 = 27]
S(19) <-> H(8) [19 + 8 = 27]
E(5) <-> V(22) [5 + 22 = 27]
Apply Rule of 27 to ATTACK:
A(1) -> 27 - 1 = 26 -> Z
T(20) -> 27 - 20 = 7 -> G
T(20) -> 27 - 20 = 7 -> G
A(1) -> 27 - 1 = 26 -> Z
C(3) -> 27 - 3 = 24 -> X
K(11) -> 27 - 11 = 16 -> P
Ciphertext: ZGGZXP
4. Transposition & Anagram Shuffling
Transposition ciphers do not alter the identity of characters; instead, they rearrange character positions according to a spatial permutation:
- Bilateral Half-Reversal: A 6-letter word divided into two 3-letter segments, each reversed internally:
VECTORSplit:VEC | TORReverse:CEV | ROTCEVROT. - Odd-Even Interlacing: Extracting odd-indexed letters first, followed by even-indexed letters:
BRIGADE(Indices 1 to 7) Odd positions (1, 3, 5, 7:B, I, A, E) + Even positions (2, 4, 6:R, G, D)BIAERGD. - Matrix Grid Transposition: Writing plaintext horizontally across fixed columns and reading vertically down rows.
Letter-to-Number Coding Methodologies
Letter-to-number problems map words to numerical values. Candidates must test whether the output represents a direct sum, a weighted calculation, or an operation involving word length.
Common Letter-to-Number Operational Rules
- Direct Positional Summation:
For example,
CADET. - Sum Scaled by Word Length:
If
CADETis coded as , the rule is the positional sum () plus the number of letters (). - Reverse Positional Summation:
For
CADET: . - Vowel-Consonant Partitioning: Vowels are assigned sequential indices () while consonants retain standard alphabetical positions, or consonants and vowels are summed into separate multipliers.
Worked Example — Weighted Number Coding:
In a signal code, SQUAD is coded as 67 and TEAM is coded as 43. What is the code for PLATOON?
Step 1: Test the plain positional sum.
SQUAD: S(19) + Q(17) + U(21) + A(1) + D(4) = 62, but the code is 67 (difference 5)
TEAM: T(20) + E(5) + A(1) + M(13) = 39, but the code is 43 (difference 4)
Step 2: Explain the differences.
SQUAD has 5 letters and its difference is 5.
TEAM has 4 letters and its difference is 4.
Rule: code = positional sum + number of letters.
Step 3: Apply the rule to PLATOON (7 letters).
P(16) + L(12) + A(1) + T(20) + O(15) + O(15) + N(14) = 93
Code = 93 + 7 = 100
Always confirm a rule on every given example before applying it.
Fictitious Language Decryption (Matrix Comparison Technique)
Fictitious (artificial) language questions present three or four statements in an unfamiliar mock language alongside English translations. The word order in the cipher statements is scrambled relative to the English sentences. To solve these, candidates must use set intersection to cross-reference statements and isolate individual word meanings.
Worked Example — Fictitious Language Matrix Deduction:
Given the following intelligence intercepts:
Statement 1: "moko tari veda" means "advance forward platoon"
Statement 2: "tari belo zuni" means "platoon secure perimeter"
Statement 3: "veda zuni koba" means "advance perimeter armor"
Objective: Determine the exact code word for "armor".
Step 1: Compare Statement 1 and Statement 2:
Common coded word: "tari"
Common English word: "platoon"
Deduction: "tari" = "platoon"
Step 2: Compare Statement 1 and Statement 3:
Common coded word: "veda"
Common English word: "advance"
Deduction: "veda" = "advance"
Step 3: Resolve Remaining Term in Statement 1:
Statement 1 has only "moko" remaining.
English translation has only "forward" remaining.
Deduction: "moko" = "forward"
Step 4: Compare Statement 2 and Statement 3:
Common coded word: "zuni"
Common English word: "perimeter"
Deduction: "zuni" = "perimeter"
Step 5: Resolve Statement 3 to Isolate "armor":
Statement 3 elements: "veda" (advance) + "zuni" (perimeter) + "koba"
English elements: "advance" + "perimeter" + "armor"
Eliminating "advance" and "perimeter" leaves: "koba" = "armor"
Conclusion: The code word for "armor" is "koba".
Grid, Matrix & Coordinate Ciphers
Coordinate ciphers map characters into a two-dimensional grid, converting each letter into a row-column coordinate pair.
The Polybius Square ( Grid)
The letters of the alphabet are arranged in a grid, combining and into a single cell:
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 1 | A | B | C | D | E |
| 2 | F | G | H | I/J | K |
| 3 | L | M | N | O | P |
| 4 | Q | R | S | T | U |
| 5 | V | W | X | Y | Z |
Each letter is encrypted as a two-digit number (Row, Column):
CADETCADET
Historically, the German ADFGVX cipher of the First World War replaced the row and column numbers with the letters A, D, F, G, V, and X, but the lookup logic is identical.
Tactical Communications & Field Signal Authentication
Military operations require robust communications security (COMSEC). In field environments, junior officers must apply cipher principles across several core procedures:
- Challenge-and-Reply Authentication: A radio operator transmits a two-letter challenge (e.g., "Delta Hotel"). The receiving station locates "Delta" on the vertical axis of the daily authentication matrix, tracks horizontally to column "Hotel", and reads the reciprocal authentication letter to confirm friendly identity.
- Brevity Codes & Prowords: Standard operational words (such as Roger, Wilco, Sunray, Sitrep) eliminate ambiguity and deny adversaries contextual information during unencrypted tactical VHF bursts.
- Transmission Security (TRANSEC): Keeping transmissions as short as possible and rotating pre-assigned daily call-sign allocations to defeat electronic direction-finding and traffic analysis by hostile forces.
Cryptographic Systems Reference Table
| Cipher Mechanism | Operating Principle | Algorithmic Rule | Primary Detection Strategy |
|---|---|---|---|
| Caesar (Fixed Shift) | Constant alphabetical translation | Constant distance between all plaintext/ciphertext pairs | |
| Progressive Shift | Incrementing displacement | Differences expand by across successive letters | |
| Reverse Complement | Reflection across midpoint () | Letter pairs sum invariant to () | |
| Transposition | Spatial rearrangement of characters | Permutation matrix | Character frequency matches natural language; letters are identical |
| Positional Numeric | Value mapping of letters | Sum, product, or length-weighted | Compare sum of forward coordinates against target integer |
| Artificial Language | Symbolic token substitution | One-to-one word mapping | Matrix cross-comparison and set intersection across sentences |
In a military communications cipher, the word PATROL is encrypted as QCWVTR. Following the identical algorithmic rule, how is the tactical command SCOUT encrypted?
TDQWV
TEPWS
TERYY
UFRZX
In a signal corps numerical code, if SIGNAL is encoded as 68 (where the sum of the forward positional values 19 + 9 + 7 + 14 + 1 + 12 = 62, plus the word length of 6 letters equals 68), what is the encoded numerical value for PATROL?
88
82
86
94
An intelligence analyst reviews three intercepted coded transmissions: (1) 'bor lin sit' means 'hostile armor column'; (2) 'sit kal vad' means 'column recon unit'; (3) 'vad bor zep' means 'hostile unit retreat'. What is the exact coded term for 'recon'?
sit
bor
vad
kal
Sections you finish are checked off in the contents.