1394 · 1116 · 1273 · 250 · 1165 · 1405
972 · 148 · 1459 · 1482 · 1201 · 821
1320 · 384 · 1280 · 1216 · 1481 · 1483

United States · diplomatic code · 1808 · solved

Armstrong's Coded Postscript to Madison

Bourbon-l'Archambault, 30 August 1808 · Library of Congress, James Madison Papers, Series 1, reel 10 · Founders Online, Madison/99-01-02-3466

Reconstruction of the “THE = 972” code from the State Department's own pencil decodes, and the reading of the postscript

Daniel Bourdeau · September 2026

Summary. John Armstrong, United States Minister to France, ended a private letter to Secretary of State James Madison (Bourbon-l'Archambault, 30 August 1808) with a postscript of 49 numerical code groups. The letter is printed in Founders Online with the postscript undeciphered, and S. Tomokiyo's Unsolved Historical Ciphers lists it, with a partial reading of about a third of the groups obtained from one letter with known plaintext. The code — a 1,600-element word-and-syllable code that Armstrong used from 1804 to 1810, conventionally labelled by its group for "the", 972 — was never published. It is reconstructed here from a different source: the microfilmed State Department despatch books (NARA M34, roll 13), where a Department clerk pencilled the decode above every group of a long despatch of October 1806. Some 580 code groups are now known, enough to read the postscript in full and most of a second coded letter of 22 February 1808. The postscript reads:
Russel ought to be the consul: he is an American by birth, and is much better qualified than any other candidate. In a word, he is above men in general. Next to him in fitness is O'Mealy, but he is, like Warden, an Irishman.

01 The document

The letter is a "private" one, written from the spa town of Bourbon-l'Archambault where Armstrong was taking the waters. Its clear text answers Madison's private letter of 20 July: it dismisses the complaints of Fulwar Skipwith (the departing commercial agent at Paris), warns that the embargo is "not felt" in France and "forgotten" in England, and says of David Bailie Warden, secretary of the legation and candidate for the Paris consulate, only that "a letter of the same character from me to the President … will give you my opinion of the fitness of M. Warden for the consular office at Paris: to this therefore I refer." The opinion Armstrong would not put in clear follows in code, as a postscript.

The coded postscript in Armstrong's hand
The postscript, Library of Congress, Madison Papers reel 10, frame 0521 (detail). Groups are separated by points; the words and, much better, In a word, in general. Next to, but are in clear.

Founders Online (Early Access document 99-01-02-3466, from the forthcoming Papers of James Madison, Secretary of State Series) prints the groups as follows; the reading of the manuscript differs in one group (§6):

1394. 1116. 1273. 250. 1165. 1405.
970. 148. 1459. 1482. 1201. 821. 130. 821.
1429. 720. 970.  and  1482.  much better
992. 1319. 1048. 584. 687. 249. 736. 1013.
750. 967.  In a word  1459. 1482. 1202.
1561.  in general. Next to  927. 1090. 1052.
832. 1482. 934. 510. 860.  but  1459. 1482.
1320. 384. 1280. 1218. 1481. 1483. 555.

The second line begins "972." in the manuscript (Founders' "970." is a misprint for the).

02 The code

Armstrong's despatches from Paris between 1804 and 1810 use a single large code in which 972 = the. Ralph Weber's survey of American diplomatic codes notes some forty letters in it among the Despatches from United States Ministers to France (DUSMF, NARA Record Group 59, microcopy M34, rolls 13–14). It is not the code of Armstrong's letter of 20 February 1808, a distinct and still unsolved system. Its structure, as recovered:

03 Sources for the key

3.1 The known-plaintext letter of 4 May 1806

Tomokiyo had already exploited the one letter for which both the coded original and a clear copy survive — Armstrong to Madison, 4 May 1806 (Founders 99-01-02-0393), on the Spanish minister's discovery of the confidential Florida proposals — to assign about 230 groups, with a few marked doubtful. This gave a base of 68 firm values used here, among them the, of, to, is, he, a, and, by, in, s, n, and showed the alphabetical layout.

3.2 The Department's pencil decodes (M34 roll 13)

The decisive source is the microfilm itself. NARA has digitised M34 roll 13 ("Nov 12 1804 – Dec 27 1807", catalogue ID 188671172; 393 frames). Frames 0192–0201 carry a long political despatch of October 1806 (written just after Lord Lauderdale's departure from Paris, with news of "two Russian armies now entering Silesia") whose every code group has the clerk's decode written above it. A scoring pass over the roll for faint mid-grey pixels away from ink located the annotated frames; the pairs were then read off by eye, frame by frame, and recorded with a confidence grade and their frame/line reference.

Roll 13, frame 0200: coded despatch with pencil decode above every group
M34 roll 13, frame 0200, right-hand page (p. 13 of the despatch). Ink: Armstrong's code groups; pencil above: the State Department's decode — "she wears is nearly transparent — the late meeting of the Hungarian Diet & a pleasure camp in October which is to assemble a great proportion of her army under the command of Prince Charles can deceive no body … Two Russian armies are now entering Silesia and a third is destined for Moldavia …".

About 500 pairs were harvested this way, 352 of them read with confidence. Merged with the 4 May 1806 values the table stands at 580 distinct groups (§7). Ambiguities in the pencil (the roll is a 1940s microfilm of faint graphite) were resolved by requiring each reading to sit in its alphabetical slot and to recur consistently across frames.

3.3 Interpolation

Twenty groups needed for the postscript and the February letter were not in either source. Each was inferred from context and then checked against its alphabetical slot; all twenty fit. Examples: 1394 between 1393 purp and 1395 Italy must open a new run — and it reads ru in three independent places (ru-in, Et-ru-ria, Y-ru-jo); 250 lies between 249 other and 252 own and reads ought; 1273 between 1272 eight and 1279 Emp reads el; 384 between 383 w and 385 was reads ward; 1320 between 1319 li and 1325 long reads like; 1483 between 1482 is and 1484 it reads ish.

3.4 A control text: the letter of 22 February 1808

Armstrong's private letter of 22 February 1808 (Founders 99-01-02-2733) contains about 150 code groups embedded in a clear political survey of Europe. It shares no groups of interest with the known-plaintext letter, so it serves as an independent check. With the merged table it reads, with gaps:

The ruin of Gustavus is at last resolved. Russia is to seize Finland, while France & Denmark take possession of Sweden. Denmark cannot ha[ve] very willingly … independence. And it is certainly amongst the most cruel circumstances of the British attack on her Capital that it … her … of her … and [like]wise … of conduct, and thrown her completely into the arms of France, while the Danish Minister was this morning pouring out his complaints to me upon this subject, and stating the … of his government and the means taken by it to avert the introduction into Denmark of a general army … of Hamburg waited in the antichamber, with the intelligence that the Prince of Ponte Corvo had already entered Holstein … There is no one of even tolerable knowledge and sagacity who does not see this. Yet wonderful to tell Russia not only does not … but actually assists him in accomplishing one half of the object. Can Finland compensate for a state of things which shall put it in the power of France to lock up the Baltic …?

The sentences that come out whole — the ru-in of Gu-sta-va-us is at last resolve-d, the Dan-ish Minister was this morning po-ur-ing out his com-plain-t-s to me upon this sub-ject, a-ve-rt the in-t-ro-duct-ion into Denmark, as-sist-s him in ac-com-pli-sh-ing one half of the object — confirm the table and fix the values ru, ish, Russia (305, which the pencil on frame 0200 also gives) used in the postscript. One group there is anomalous: 946 is on in the 4 May 1806 letter but must be Gu in Gustavus (914 = gu elsewhere) — a homophone, or a slip in the manuscript or the transcription.

04 Decipherment of the postscript

GroupValueSourceGroupValueSource
1394Ruinferred; ru-in, Et-ru-ria, Y-ru-jo1013di4 May 1806
1116spencil; 4 May 1806750dapencil (Mol-da-vi-a)
1273elinferred (1272 eight < el < 1279 Emp)967tepencil
250oughtinferred (249 other < ought < 252 own)1459hepencil; 4 May 1806
1165topencil; 4 May 18061482ispencil; 4 May 1806
1405bepencil (four frames)1202aboveslot 1201 a < above < 1209 Agent
972thepencil; 4 May 18061561menpencil (thirty thousand men)
148consulslot 146 confide < consul < 151 contrary927him4 May 1806
1459 1482he is1090inpencil; 4 May 1806
1201apencil; 4 May 18061052fitslot 1050 fi < fit < 1062 fol
821npencil; 4 May 1806832nesspencil
130Americaslot 128 yesterday | America < 137 between (new run)1482is
821n934Opencil (ag-o); 4 May 1806 (vi-o-late)
1429bypencil; 4 May 1806510meapencil (mea-sures)
720birinferred (719 Ba < bir < 723 bo)860lypencil; 4 May 1806
970thpencil (stre-en-th)1459 1482he is
1482is1320likeinferred (1319 li < like < 1325 long)
992quainferred (< 993 qui)384Wardinferred (383 w < ward < 385 was)
1319li4 May 1806 (catho-li-c)1280enpencil; 4 May 1806 (se-en)
1048fi(ed)inferred (1046 fi … 1052 fit)1216anpencil; 4 May 1806 — MS reads 1216, Founders 1218
584thanpencil (frame 0194)1481irpencil; 4 May 1806
687anypencil1483ishinferred (1482 is < ish < 1484 it); Dan-ish
249otherpencil; 4 May 1806555[man]MS 555 = re; read as slip for 1555 man (see §6)
736canpencil (can deceive)

green = pencil decode on roll 13 · blue = 4 May 1806 known plaintext · amber = uncertain reading or slot inference · red = inferred here from context and alphabetical position

P.S. Ru-s-el ought to be the consul: he is a-n America-n by bir-th, and is much better qua-li-fi(ed) than any other can-di-da-te. In a word he is above men in general. Next to him in fit-ness is O-mea-ly, but he is like Ward-en an Ir-ish-[man].

4.1 The people

05 Method

  1. Collect the ciphertext. Founders Online transcriptions of Armstrong's coded letters (4 May 1806, 22 February 1808, September 1807, 30 August 1808) were gathered, and the LOC manuscript images of the 30 August letter retrieved for collation.
  2. Locate a Rosetta stone. The NARA catalogue entry for M34 roll 13 was downloaded (393 frames). A simple image score — the proportion of mid-grey pixels not adjacent to dark ink — ranked frames by the amount of pencil on them and pointed to frames 0192–0201.
  3. Harvest. Each annotated frame was cropped into thirds, contrast-enhanced, and read group by group; every pair was recorded with frame/line and a confidence grade (H/M). Groups seen on several frames were cross-checked.
  4. Merge and rank. A script merges the 4 May 1806 values, the harvested pairs and the inferences, ranking readings H > C > M > inferred, and renders any coded passage with unknowns and doubtful values flagged.
  5. Infer and verify. Remaining gaps were filled by context and checked against the alphabetical slot; the 22 February 1808 letter served as the independent control.
  6. Collate the manuscript. The LOC image of the postscript was enlarged to check every group against the Founders text.

06 Corrections to the printed transcription, and one residual doubt

For the catalogues. The postscript of Armstrong to Madison, 30 August 1808 (Tomokiyo, Unsolved Historical Ciphers, "Armstrong to Madison" item 1) is read in full above; 48 of 49 groups are determined and the 49th is a probable slip for man. The 580-group table below is offered for the other coded Armstrong despatches of 1804–1810 in DUSMF rolls 13–14 and in the Madison Papers, most of which have never been read.

07 Try the key

Paste code groups separated by spaces or points; clear words may be left in place. Each group is shown with its value written above it, as the Department clerk did in pencil. Colours: green pencil decode or known plaintext, amber uncertain, red inferred; ? = unknown group.

Reconstructed table (580 groups)

Grades: H pencil decode (roll 13), C known plaintext of 4 May 1806, M uncertain pencil reading or slot inference, I inferred here. Source data with frame references: armstrong/pairs.txt in the repository.

08 Sources

Code used (Python: frame scoring, table merge and renderer) and the harvested pair list are in the repository.