Republished copy of Daniel Bourdeau’s Unsolved Historical Ciphers, released under CC BY 4.0. Text unchanged; hosted by JIC alongside its translations; not an official copy by the author · View the original ↗
Ew. H. Dl. 524 . 99 . 916 . 38 . 442 . 692 . 447 . 90 . 507 . 24 . 22 . 402 . 924 . 556 =
863 . 888 . 119 . 382 . 92 . 42 . 84 . 9 . 465 . 4 . 341 . 937 . 19 . 227 . 298 …
… the opening of f. 3r, after “Durchlauchtigster Fürst”

Unknown informant → Prince of Waldeck · three-digit code · January 1744 · not deciphered

Military news in code for the Prince of Waldeck, 1744

Prince Carl August Friedrich of Waldeck
toPrince Carl August Friedrich of Waldeck

Two pages of numbers sent to an Imperial and Dutch general in the War of the Austrian Succession, probably from a man hoping for a commission in his regiment; the code has no key, and one letter proved too short to rebuild it.

Daniel Bourdeau · posted

Method: not solved · Extent: text not obtained

At a glanceNot solved · 0 of 717 code groups

The letter
An unsigned letter in German to Prince Carl August Friedrich of Waldeck-Pyrmont. His draft reply on the back answers a letter of 18 January, so it dates from January 1744.
Where
Hessisches Staatsarchiv Marburg, HStAM 118 a Nr. 3954, ff. 3r–4r, filed as “Militärische Nachrichten für Fürst Carl August Friedrich (in Chiffre)”; HCPortal record 517, “not solved”.
The cipher
717 dotted groups from 4 to 999, 303 of them different. It is most probably a two-part homophonic nomenclator: a numbered list of letters, syllables and words in no alphabetical order, with several numbers for common entries.
How it was tried
The file, the Waldeck papers and the Marburg keys on HCPortal and DECODE were searched for a key. Letter, alphabetical and nomenclator solvers were each tested first on synthetic letters of the same size.
Why it resists
On a synthetic two-part nomenclator of this size, wrong keys score better than the true one. One letter does not determine the key.
Still open
The whole text. A key or a deciphered copy could be in the undigitised volumes on the 1744 campaign in the same fonds (118 a Nr. 1973–1980).

01 The letter and its reply

The file holds one letter on two leaves. Folio 3r is headed, in a flourished hand, Durchlauchtigster Fürst, then Ew. H. Dl. (Euer Hochfürstlichen Durchlaucht) in clear, then nineteen lines of numbers. A later hand has written “1744” in the corner. Folio 4 is a narrower leaf with twenty-six more lines. Ew. H. Dl. appears once more in clear, in its seventeenth line. There is no signature and no date. The back of folio 3 carries a docket that was never finished: “Schreiben an [blank] in Ziffern”.

Top of folio 3r: a large flourished 'Durchlauchtigster Fürst', the date 1744 in a later hand, and the first lines of dotted three-digit numbers after 'Ew. H. Dl.'
The opening of f. 3r. The first line ends 556.= with the German hyphen, so a word runs on to the next line and the code has units smaller than words. Image: Hessisches Staatsarchiv Marburg, HStAM 118 a Nr. 3954 f. 3r, via Arcinsys Hessen (image 0003) and HCPortal record 517.

The back of folio 4 was used for the prince’s reply, drafted in French and corrected as it was written. It opens: “Je viens de recevoir, Monsieur, votre lettre du 18e Janv.” He first thanked his correspondent “des nouvelles que vous me donnez et de tout le bien que vous me souhaitez à l’occasion du renouvellement de l’année”, then shortened the thanks to the New Year wishes alone. He asks for news “de chez vous” as often as possible. Vienna reports that the lieutenant-colonel will leave the regiment, and he promises to remember his correspondent when places fall vacant.

The French draft on folio 4v, beginning 'Je viens de recevoir, Monsieur, votre lettre du 18e Janv.', with words struck out and corrections above the line
The prince’s draft reply on f. 4v, written on the back of the cipher. It dates the ciphered letter to 18 January 1744 and shows its writer hoping for a place in the prince’s regiment. Image: Hessisches Staatsarchiv Marburg, HStAM 118 a Nr. 3954 f. 4v, via Arcinsys Hessen (image 0005).

Carl August Friedrich (1704–1763) owned an Imperial infantry regiment from 1739. He was an Imperial Feldzeugmeister and, from 1742, a general of infantry in Dutch service. In 1744 he served with the Austrian army, and in 1745 he commanded the Dutch at Fontenoy. The writer’s place is not named. The prince’s interest in news “de chez vous” suggests a court or army he could not see from his own.

02 The code

The two pages were transcribed here from full-resolution crops of the scans: 45 lines, 717 groups, 303 of them different and 144 used once. The groups run from 4 to 999; 19 have one digit and 133 two. They are separated by dots, dashes or bare spaces with no pattern. The second leaf writes 2 as a z-shaped figure, and its 5 ends in a hook that can look like a colon. The commonest groups are 19 and 141 (14 times each), 38 and 341 (13), 24 (11), and 7 and 937 (10).

Two features fix the kind of system. The sequence 879.144.X.126 occurs four times, with X = 90, 7, 7 and 924. In its second occurrence the writer began a 9, struck it through and wrote 7 above. These are several numbers for one entry, chosen at will: homophones.

Three lines of numbers on folio 4r; in the middle line, after 879 and 144, a blotted 9 is struck through with 7 written above it, followed by 126
f. 4r, line 5: 879 . 144 . 9 7 . 126. On f. 3r the same phrase has 90 in this place, and on f. 4 l. 20 it has 924. Image: Hessisches Staatsarchiv Marburg, HStAM 118 a Nr. 3954 f. 4r, lines 4–6, via Arcinsys Hessen (image 0004).

Second, 303 different groups in 717 are too many for a letter cipher of the period, which gave each letter three to six numbers. A letter alphabet of about 130 numbers could not produce them. The table must also hold syllables and words, as the line-end hyphen already showed.

03 Which kind of table

A one-part code lists its entries alphabetically with the numbers rising, so its usage piles up where frequent German entries fall (die, der, the e- and ge- syllables, und). The share of text carried by each stretch of numbers was compared with that profile, built by encoding 1740s German with a sorted syllabary. Random numberings of the same counts give the baseline.

Numbering testedFit to German (lower is better)Random numberingsVerdict
alphabetical, 1–9990.1920.077rejected
letters in 1–99, alphabetical 100–9990.1490.077rejected
columns by last digit, as in the Hessen-Kassel keys of 1723 and 1720–30 (best of 20 orders)0.0570.047no support
multiplicative scrambling n = a·p mod 1000 (best of 400)0.0380.036no support

Nothing in the numbering behaves alphabetically. A two-part design fits: letters with about four scattered numbers each, some six hundred syllables and words with one number each, as in the Hessen-Kassel key of 1730 for Hanoverian correspondence (HStAM 4 d Nr. 1229). A synthetic letter encoded that way gives 310 different groups, 146 used once, a commonest group of 14, and 93 groups used three times or more carrying 429 tokens. The letter to Waldeck has 303, 144, 14, and 85 carrying 425. It departs only in its heavy use of numbers under 100, which fits a clerk who took the first number listed for an entry.

04 What was tried

A language model of 1740s German was built for this letter from 202 texts of 1724–1767 in the Deutsches Textarchiv: Berlin newspapers of 1737–41, the Hamburgischer Correspondent and military manuals, 23.6 million letters. Every solver was run first on synthetic letters of the same size whose key is known.

AttackOn the synthetic controlOn the letter
Letter-by-letter homophonic annealing (5-gram)Gibberish scores as well as or better than the true textBest score in the same range, no two runs agree
The same with a dictionary word score addedTrue key scores highest, but 12 runs of 20 million moves and heat-bath sampling stop short of it—
Alphabetical-table annealers (after the van Swieten solve), with letters free under 100, column orders, heat-bath samplingTrue key highest only at a low letter bonus; searches stall below itFragments of words, no sense
Two-part nomenclator assignmentTrue key −1284 against wrong keys found at −255 (bonus 1.0), −1934 against −1060 (bonus 0.6)Not run: the control shows the answer would not be identifiable

The last row settles it. For a two-part code of this size, the language model rates many wrong keys far above the true one, whatever the allowance for longer units. A search that reached the true key could not recognise it. The probable New Year wish cannot be used as a crib either, because in a two-part code the unit boundaries are unknown.

No other cipher item is catalogued in the Waldeck cabinet papers (118 a) or in any Waldeck fonds after 1646. The two older Waldeck ciphers, of 1638 and 1646, are simple letter substitutions. HCPortal’s Marburg records and its 319 keys have nothing for Waldeck in the 1740s. DECODE lists 112 Hessen-Kassel keys of 1710–1799 from Marburg; the German ones examined (4 d Nr. 1229, 1231 and 1237) do not fit this letter. The volumes where the correspondence of January 1744 would sit are not digitised. These are 118 a Nr. 1973–1980, “Akten betr. den Feldzug von 1744” (volume 1 covers January to May), the prince’s wartime correspondence (Nr. 1969–1972, 2044) and the officers’ applications of 1745–1750 (Nr. 2047). The prince’s reply shows that his chancery could read the letter. A deciphered copy, or the key itself, may survive among them.

06 Sources

Everything is in targets/waldeck1744/ in the project repository: the transcription (trans_p1.txt, trans_p2.txt, ct.txt), the statistics and ordering tests (stats.py, cdf_test*.py), the synthetic controls (synth*.py), the solvers (hsolve*.cs, hgibbs.cs, msolve*.cs, gsolve.cs) and NOTES.md, which holds the full record of the attempt.