Condi Cipher
Condi is one of the youngest ciphers in the ACA catalogue and one of the cleverest: a keyed alphabet, a starting offset, and a chain. The first letter shifts forward by the offset; every letter after that shifts by an amount dictated by the plaintext itself — the position of the previous plaintext letter in the keyed alphabet. The keystream is generated by the message, letter by letter. Devised by G4EGG and published in The Cryptogram in 2011, it is named for its mechanism: CONsecutive DIgraphs. This tool opens on the inventor's own published example.
The Condi cipher is a chained running-key substitution inside a keyed alphabet. The first letter is shifted forward by a starting offset (1–25); each following letter is shifted by the 1-based position, in the keyed alphabet, of the plaintext letter before it. Decoding walks the same chain, recovering each next shift as it goes.
CONDI = CONsecutive DIgraphs: each digraph's first letter sets the shift applied to its second.
Encode or decode — the plaintext steers
The keyed alphabet — positions in this row are the shifts
Everything runs in your browser — nothing is uploaded.
A chain made of the message itself
Scramble the keyword into a cipher alphabet in the usual way (keyword letters first, deduplicated, then the rest). The first plaintext letter is shifted forward along the alphabet by the starting offset; the letter it lands on is the first ciphertext letter. Now the chain takes over: the shift for the second letter is the 1-based position, in the cipher alphabet, of the first plaintext letter; the shift for the third is the position of the second, and so on. One honest note: the reference description's summary says the chain runs on the plaintext, while a later line says ciphertext. Hand-computing the published example settles it — only the plaintext chain reproduces the printed ciphertext — and that is what this tool implements.
Classical running-key ciphers borrow their keystream from somewhere: a book, a keyword repeated, the plaintext fed back as letters (autokey). Condi feeds back not the letters but their positions in a scrambled alphabet, decorrelating the keystream from anything printable. Correspondents need agree only the keyword and the offset — and the offset, at 25 possibilities, is seasoning, not substance: the keyword is the key.
G4EGG, 2011
Condi was devised by the ACA member G4EGG and published in The Cryptogram for September–October 2011 — a 21st-century hobbyist design built from 19th-century parts, and a small lesson in stream-cipher thinking: a keystream that depends on the message itself, with no machinery beyond a scrambled alphabet and the ability to count. It is an ACA standard type, solved and set there still.
The first three links of the chain
| Step | Plaintext | Shift | Why | Ciphertext |
|---|---|---|---|---|
| 1 | R (19th letter of the alphabet) | +7 | The starting offset | Z |
| 2 | E (6th) | +19 | R's position | Y |
| 3 | A (2nd) | +6 | E's position | B |
Positions are counted in the HAPPINESS keyed alphabet — HAPINESBCDFGJKLMOQRTUVWXYZ — which the tool redraws live for your keyword.
The inventor's example, in full
Example 1 — the published example (keyword HAPPINESS, offset 7)
Sixty-seven letters, computed live by the tool above and matching the printed example letter for letter. Change the keyword or the offset and the whole stream diverges from the first letter.
Double-edged, by design
The chain cuts both ways. For the defender, the shifts are effectively random-looking — positions of English letters in a scrambled alphabet — so frequency analysis sees a flattened stream and Vigenère attacks find no repeating key. For the attacker, one guessed plaintext letter fixes the next shift exactly, so a crib can be dragged along the ciphertext testing itself: guess TH at a position, and the second letter's correctness is checkable from the arithmetic alone. And the offset is no refuge — all 25 can simply be tried.
- Security status: a clever ACA puzzle system; its chain is its strength and its confession.
- What gives it away: a two-letter crib, checked link by link.
- Operator warning: a wrong starting offset does not heal after the first letter — every recovered letter sets the next shift, so an offset error alternates through the whole decode (too far back, too far forward, by the same amount). Check the offset first.
The feedback family
| Relative | How it differs | Solve it with |
|---|---|---|
| Autokey | Feeds the plaintext letters back as key letters in a Vigenère tableau; Condi feeds back their positions | The Autokey page |
| Running key | The keystream comes from an external text, not from the message — no chain | The Running Key page |
| Vigenère | A short keyword repeated — a periodic keystream, which Condi's chain abolishes | The Vigenère page |
A stream cipher you can do on paper
Condi lives in the ACA puzzle world, valued as the rare modern design that teaches something: feedback, keystream generation and error propagation, all visible in three lines of arithmetic — and proof that novelty in classical cryptography did not end in 1950.
Walk the chain
Practice 1 — encode under HAPPINESS, offset 7
Start with +7, then let each plaintext letter set the next shift.
Reveal the answer
WVGZVVYVBV.
Practice 2 — decode under KEY, offset 3
Shift the first letter back by 3; each recovered letter tells you the next shift to undo.
Reveal the answer
SEND HELP.
Frequently asked questions
What does the name Condi mean?
It is the mechanism, compressed: CONsecutive DIgraphs. Each pair of consecutive plaintext letters is linked — the first letter of the pair sets the shift applied to the second. G4EGG published the system under this name in The Cryptogram in 2011.
Is Condi the same as an autokey cipher?
A cousin, not a twin. Autokey feeds the plaintext letters back as key letters for a Vigenère tableau. Condi feeds back the plaintext letters' positions in a keyed alphabet and applies them as shifts inside that same alphabet — no tableau, and the alphabet it runs in is scrambled by the keyword.
If I decode with the wrong offset, can I just fix the first letter?
No — though it is often claimed otherwise. Every later shift comes from the recovered plaintext, so a wrong first letter sets a wrong second shift, whose wrong letter sets a wrong third: the error alternates through the whole message, each letter out by the same amount, back then forward. The good news: only 25 offsets exist, so a solver tries them all.
What starting offsets are allowed?
1 to 25. An offset of 0 would leave the first letter unshifted, and 26 is a full turn of the alphabet — the same thing. The tool refuses anything outside 1–25.