Home › Ciphers › Periodic GROMARK Cipher

Periodic GROMARK Cipher

Periodic GROMARK is the GROMARK idea given a period — and a single keyword made to do three jobs at once. Published by DUMBO in The Cryptogram for March–April 1973, four years after his original GROMARK, it builds the mixed alphabet from the keyword exactly as the parent does; then it reads the keyword a second way, as a primer — its letters' alphabetical ranks seed the lagged keystream — and a third way, as block offsets: each keyword letter's position in the mixed alphabet shifts every letter of one block. The keystream restarts each period, so corresponding letters of different blocks differ only by their block's offset — the periodicity the name advertises. This tool is verified against the published ACA example: the full 64-letter ciphertext under ENIGMA reproduces exactly.

In short

Periodic GROMARK enciphers with the parent GROMARK machinery — mixed alphabet plus lagged-addition digit keystream — but derives everything from one keyword: alphabet, primer (the keyword's rank order) and per-block offsets (its letters' positions in that alphabet), restarting the keystream every period.

DUMBO, The Cryptogram Mar–Apr 1973. Parent: GROMARK (DUMBO, 1969), which takes its primer as separate digits.

Encode or decode — one keyword drives everything

64 letters
Encoded · Periodic GROMARK
RHNAAXNRUZBNIUARXCRTPATBRLIGDSVCIRCVOYPVRAAZZMUSREQYEVMMURGWTLUD

Everything runs in your browser — nothing is uploaded.

How it works

Three readings of one word

Alphabet. The keyword builds the mixed alphabet exactly as in GROMARK — ENIGMA gives AJRXEBKSYGFPVIDOUMHQWNCLTZ. Primer. The keyword's distinct letters are ranked alphabetically, the smallest counting as 1, and the ranks read in keyword order seed the keystream: ENIGMA's letters sort as A E G I M N, and in keyword order give 2 6 4 3 5 1 — the primer 264351. Keystream. The digits extend by lagged addition — each new digit is the sum, mod 10, of the digits L back and L−1 back, where L is the keyword's length: for ENIGMA, 264351 807869 875457… Offsets. The message is cut into blocks of L letters; block j is shifted, as a whole, by the position of the keyword's j-th letter in the mixed alphabet — for ENIGMA: E+4, N+21, I+13, G+9, M+17, A+0. Each letter is then enciphered as in GROMARK with its block's offset folded in: ciphertext = mixed alphabet at (straight index + keystream digit + block offset) mod 26. Because the keystream restarts every period, the same position in different blocks differs only by offset — the system's signature and its weakness.

Origin & history

DUMBO revisits his own cipher, 1973

GROMARK — GROnsfeld with Mixed Alphabet and Running Key — appeared in The Cryptogram for March–April 1969, DUMBO's construction. Four years later DUMBO published this periodic development of his own system. The redesign answers the parent's practical awkwardness: GROMARK's primer is a string of digits that must be agreed and transmitted separately. Periodic GROMARK folds the primer into the keyword itself — its rank order is the primer — and spends the keyword a third time on the block offsets, so the whole key is one word. The price is the period.

Reference

ENIGMA, three ways

Mixed alphabetAJRXEBKSYGFPVIDOUMHQWNCLTZ
Primer (rank order)264351
Keystream opens264351 807869 875457…
Block offsetsE+4 · N+21 · I+13 · G+9 · M+17 · A+0

The tool prints all three derivations for any keyword.

Worked examples

The published weather forecast

Example 1 — the ACA ciphertext under ENIGMA

WINTRY SHOWERS ARE EXPECTED… → RHNAA XNRUZ BNIUA RXCRT PATBR LIGDS VCIRC VOYPV RAAZZ MUSRE QYEVM MURGW TLUD

The published example, reproduced exactly by the tool above — all 64 letters. Check the machinery on the first block: W sits at index 22 in the straight alphabet; the first keystream digit is 2 and the first block's offset is E's +4; 22 + 2 + 4 = 28, mod 26 = 2, and the mixed alphabet's index 2 is R — the ciphertext's first letter. The second block restarts the keystream but shifts by N's +21 instead — that rhythm, every six letters, is the period in Periodic.

Example 2 — a second keyword, WRIGHT

WRIGHT → alphabet GDMUHENVICLSRBKQZTFOXWAJPY · primer 643125 · stream 643125074375717022887240…

Reference implementations agree on WRIGHT's derivations, including a keystream whose first twenty-four digits match the published continuation. Encoding ATTACK AT DAWN under WRIGHT opens with D — try it.

Breaking it

The period is the handle

Everything elegant about the construction is also a handhold. One keyword determines the alphabet, the primer and the offsets, so a solver who guesses the keyword's length knows the period, the keystream's entire future (lagged addition is deterministic from the primer), and the block structure. Worse, the restart means letters at the same position in different blocks share a keystream digit: strip the offsets and the blocks align like the columns of a Vigenère with a known key stream. The parent GROMARK denies the solver exactly this alignment. Periodic GROMARK traded that strength for a one-word key.

  • Security status: weaker than its parent by design — the period aligns the blocks for attack.
  • What gives it away: block-periodic structure and a keystream fully determined by a guessable primer.
Variants

The GROMARK family

RelativeHow it differsSolve it with
GROMARKThe parent: separate numeric primer, keystream unbroken, no block offsetsThe GROMARK page
Gronsfeld cipherThe family's root: digit shifts over the straight alphabet, no mixing, no lagged chainThe Gronsfeld page
Interrupted Key cipherAnother periodic polyalphabetic, restarted at irregular intervalsThe Interrupted Key page
Uses & culture

An author's second draft

Periodic GROMARK's interest is partly biographical: a cipher designer publicly revising his own work. It also teaches a durable lesson in key economy: every reuse of the same key material in a new role is structure an analyst can spend, and DUMBO's one-word key spends it three times.

Practice

Derive it yourself

Practice 1 — what is ENIGMA's primer?

Rank the distinct letters alphabetically, then read the ranks in keyword order

The distinct letters sort as A E G I M N, ranked 1 to 6; read the ranks in keyword order.

Reveal the answer

264351 — E is 2, N is 6, I is 4, G is 3, M is 5, A is 1.

Practice 2 — encode ATTACK under ENIGMA

ATTACK → ?

One block: keystream 264351, offset E's +4 throughout.

Reveal the answer

KXJSPO.

FAQ

Frequently asked questions

How is this different from ordinary GROMARK?

Three differences: the primer is not chosen separately — it is the keyword's alphabetical rank order; the keystream restarts at every block instead of running unbroken; and each block is additionally shifted by an offset from the keyword letter's place in the mixed alphabet.

Why the nine-distinct-letter limit on keywords?

Because the primer is made of ranks, and ranks must be single digits to seed the digit keystream. Ten or more distinct keyword letters would need a two-digit rank, which the construction has no room for.

Next steps