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

United States · diplomatic code · 1808

Armstrong's coded postscript to Madison, 1808

John Armstrong
fromJohn Armstrong
James Madison
toJames Madison

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

The “THE = 972” code was recovered from the State Department's own pencil decodes of Armstrong's 1806 despatches and from Tomokiyo's partial table, then applied to the postscript: 48 of the 49 groups give sense, and the last does so with one digit emended. Tomokiyo's table covered about a third of the postscript's groups; no full decipherment was found in archive, print or online.

Daniel Bourdeau · posted · updated

Method: key recovered based on plaintext from external sources · Extent: complete

Credits · Satoshi Tomokiyo (key or decipherment used) · Feyseel Nur (transcription) · Contemporary key or decipherment (key or decipherment used)

At a glanceKey from external plaintext · complete

The letter
Postscript of 49 code groups to a private letter from John Armstrong, US Minister to France, to James Madison, Bourbon-l’Archambault, 30 August 1808.
Where
Library of Congress, Madison Papers reel 10, frame 0521. Founders Online prints it undeciphered.
The cipher
A word-and-syllable code of about 1,600 groups used 1804–1810, labelled 972 after its group for “the”.
How it was read
The table was rebuilt from NARA M34 roll 13, where a State Department clerk pencilled the decode above a long despatch of October 1806. About 580 groups are known, enough for the postscript; thirteen further despatches of 1807–1810 then decoded, all but one at 95% or more.
What it says
Armstrong recommends Russel as consul at Paris over O’Mealy and Warden, who are Irishmen.
Still open
The groups of the 1,600-group code not yet recovered.
Credit
Tomokiyo had read about a third of the groups from one letter with known plaintext.

Companion: John Quincy Adams’s St Petersburg despatches, said to be in this code, are in another, and Erving’s 1807 letter is in Pinckney’s: two legation codes.

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. Image: Library of Congress, James Madison Papers, Series 1, reel 10, frame 0521, via loc.gov.

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 system whose key has not been recovered. Its structure, as recovered:

03 Sources for the key

3.1 The known-plaintext letter of 4 May 1806

Tomokiyo had already used the one letter for which both the coded original and a clear copy survive, Armstrong to Madison of 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 main 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 transcribed 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 …". Image: U.S. National Archives, RG 59, microcopy M34 roll 13, frame 0200, via the National Archives Catalog.

About 500 pairs were collected this way, 352 of them legible 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 gives 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 decodes, with gaps, as follows:

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 the decoded despatches. 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) was used as a triage aid while browsing the roll; the annotated frames 0190 and 0192–0201 were confirmed by eye. Rerun over all 393 frames on 16 September 2026 the score does not locate them on its own: grey blank leaves outscore the annotated pages, and only the first, densest page of the October despatch ranks high (third of 392) once the score is restricted to the interlinear band near ink. See targets/armstrong/NOTES.md.
  3. Harvest. Each annotated frame was cropped into thirds, contrast-enhanced, and transcribed 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 decoded completely 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 carry no decode.

07 The other despatches in THE=972, 1807–1810

On 2 and 3 October 2026 the table was applied to the rest of Armstrong’s coded correspondence that is not already in print decoded. Founders Online’s early-access texts of September 1807 to February 1809 contain eleven coded despatches or passages (the postscript is one of them), roll 13 holds the triplicate of 15 November 1807, and NARA M34 roll 14 adds three despatches of 1810 to Secretary of State Robert Smith, whose pencil decodes are on the frames. The earlier estimate of “about forty” was too high: the coded despatches of 1804–07 are printed decoded in the Secretary of State Series, from the clerks’ interlinear decodes.

Seven lines of code numbers separated by points, with a clerk's faint pencil decode between the lines, followed by clear lines beginning With these impressions I shall approach a negociation.
Armstrong to Robert Smith, Paris, 17 February 1810 (triplicate), the coded passage on Champagny’s note. A clerk’s pencil decode runs faintly between the lines: “to justify the violence already committed on our commerce … this judgement is neither hasty [nor] uncharitable”. Image: U.S. National Archives, RG 59, microcopy M34 roll 14, frame 0495, via the National Archives Catalog.

On 2 October each despatch was decoded from the Founders text, or from a transcription of the roll-14 frames for 1810, with corrections where the frames show that Founders misread a group, and about 160 values forced by context were added to the table. On 3 October the manuscripts themselves were found and read. Roll 13 ends with the triplicate of 15 November 1807 (frame 0377) and the despatch of 27/29 December 1807 (frames 0390–91), and paging the head of every roll-14 frame located every coded despatch of 1808. Almost every one carries the State Department clerk’s pencil decode between the lines. Those decodes, read at full frame resolution (about 150 group values, pencil.tsv), are now the main evidence; where Founders’ group list differs from the manuscript, the manuscript was transcribed (transcripts14.txt). The context values (additions972.tsv) now carry only what the pencil does not cover.

Two shares are measured per despatch. Known: the group’s value is attested independently of this despatch’s context, by the clerk’s pencil over it here or in another despatch, by Tomokiyo’s 1806 known plaintext, or by the 1806 pencil. Reads as sense: the group has a value that is known or forced by its sentence, and the word it gives fits the English; guesses that do not fit, weak additions and the spans listed in sense972.json are excluded. The 2 October column was the share given a value, which is not a sense measure.

DespatchGroupsKnownReads as sense2 Oct (given a value)What it says
15 Nov 18075887.9%98.3%not listedLucien Bonaparte, “in attachment or from policy, is to marry the Queen Regent of Etruria”; the “Imperial longing” for colonies “which are in its opinion necessary to France”
27/29 Dec 180724386.8%99.6%88.9%Talleyrand “dare not avow his opinion”; the Emperor “wished to get hold of the royal family of Portugal”; “a degree of wretchedness that makes even scoundrels honest”; 29 Dec: “Russia is sincere and will be duped”
15 Feb 180824376.1%97.1%100%“With one hand they offer us the blessings of equal alliance against Great Britain; with the other they menace us with war … they pick our pockets with all imaginable diligence, dexterity and impudence”; the Floridas
22 Feb 180838776.5%96.1%98.2%Gustavus; Denmark; Bonaparte and the crowns of Portugal and Spain; “you will have to elect between being the ally or the enemy of France”; a league of American interest “restricted to Cuba and Mexico”; Cretet, Fouché, Talleyrand
5/9 Mar 180840986.6%99.3%94.6%Lafayette’s letter subjoined: Cretet obscure and contradictory, Fouché spoke well, the matter adjourned; “Burn my scrawl … most affectionately yours, La Fayette”; 9 Mar: an exception to the November decree
26 Mar 1808540%80%100%“brigandage” (pencil); one digit doubtful
31 May 18084100%100%100%“supposed to be the work of the Emperor”
6 Jun 180810100%100%67%“he would become a free agent … we can only do our duty by preparing for the worst”
13 Aug 180827100%100%92.6%the moment will “enable you to do with the Floridas and your western limits whatever you please”
30 Aug 18084877.1%97.9%100%the postscript above; this count, from the Founders group list, has 48 groups, and one of them, an uncertain value, is not counted as sense
25 Oct 18082395.7%100%90.9%to give up Portugal “while they retain Spain”; “while France continues to be what it is, is not the way”; Joseph’s title to the Floridas “better than none”
20 Jan 18102996.6%96.6%100%“the duke of Cadore and myself are in negociation for an adjustment of our differences”
2 Feb 18101883.3%100%100%Mr Petry’s proposition for a convention on principles of reciprocal advantage
17 Feb 18108379.5%95.2%100%Champagny’s note seeks “to justify the violence already committed on our commerce … force or fraud”
All fourteen1,5871,553 (97.9%)

Thirteen of the fourteen items read as sense at 95% or more; the exception is the five groups of 26 March 1808, one of whose digits is doubtful on the frame. The 1810 pencil decodes gave new words directly (negociation, convention, reciprocal, justify, uncharitable, fraud …).

What the despatches showed about the code. It has punctuation groups, which the 1806 pencil never wrote out: 1105 comma, 962 full stop, 1104 and 897 semicolon, 895 dash, 1103 question mark, 1162 hyphen (“to-day”), 896 parenthesis; 958 and 588 are nulls that the clerk skips. 608 is u/v (Gusta-v-us, Fo-u-ché), 773 is ea, 910 is go, and 894, 959, 960 and 1109 are digits. Founders misreads about twenty groups in the lists checked.

Four of the five conflicts of 2 October were settled by a third occurrence. 946 is on: the manuscript of 22 February writes 914 (gu) in Gu-sta-v-us, and Founders’ 946 is a misreading. 396 is while (the pencil twice on 25 October); the 17 February 1810 pencil “which” over it is a slip one number off, 395 being which. 1260 is dou (pencil “doubt” on 27 December 1807). 1415 has two values, ble (pencil “blessings”) and be; on 29 December the manuscript has 1405 (be) where Founders printed 1415, so some be readings may be misprints of 1405. 720 is not settled: on 26 March the digit is 720 or 750, and the pencil “brigandage” needs 750 (da).

Still open in them. 22 February 1808, 15 groups that do not read as sense (the man “of Hamburg” in the antechamber, “for ever the [?]an [?]oses of Europe”, and a few syllables), each seen once in a despatch whose body has no pencil decode. 15 February 1808, 7 groups, and two read as Armstrong’s slips that were not checked on the frame. 5 March 1808, three groups under illegible pencil. The 720/750 digit of 26 March. The coded despatches of 1804–07 are printed decoded in the Secretary of State Series and their group lists were not re-checked. The letter of 20 February 1808 is in a different code and stays out (section 06 and the adjudication in the notes).

08 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: targets/armstrong/pairs.txt in the repository.

Full texts

The transcription and the decryption of every document on this page, so that the reading can be used and checked. Short files are shown here; all are in the repository.

Coded postscript, 30 Aug 1808

John Armstrong, US minister in France, tells Madison in a coded postscript that Russel (most probably Jonathan Russell) ought to be the consul, being American-born and better qualified than any other candidate, and that O'Mealy comes next but is, like Warden, an Irishman: the same animus against David Bailie Warden that led Armstrong to remove him in 1810.

Transcription

ps30aug1808_transcription.txt

# Armstrong to Madison, coded postscript of 30 Aug 1808 (LoC Madison Papers reel 10 frame 0521). Copied verbatim from the PS string in decode972.py.
# Code groups as read from the LoC manuscript; | separates code runs from plain words; the last group is 555 in the MS, taken as a slip for 1555.
1394 1116 1273 250 1165 1405 | 972 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 1216 1481 1483 [555=>1555]
Decryption

ps30aug1808_decryption.md

# Armstrong to Madison, coded postscript of 30 Aug 1808: decryption

Group-by-group key output saved from `python decode972.py ps` (22 Oct 2026); `?` = uncertain (M), `*` = inferred (I).
The connected reading below is copied verbatim from NOTES.md, "Result".

```
== PS 30 Aug 1808 ==
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* [ re => man ]

```

    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].

> 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.
Reading

ps30aug1808_reading.md

<!-- Reading of the coded postscript of 30 Aug 1808, written 23 Oct 2026 (Claude Opus 5.5, verification 5) from texts/ps30aug1808_decryption.md (decode972.py output and the connected reading in NOTES.md "Result"), syllable groups joined into words. Marks: qualifi[ed] = the group 1048 reads "fi", the ending is supplied; Irish[?man] = the manuscript writes 555 (re), read as 1555 (man) with a dropped digit (NOTES.md, "The one doubt"). Inferred group values (I in NOTES.md, each checked against its alphabetical slot) are unbracketed. -->

# Armstrong to Madison, coded postscript of 30 Aug 1808

## Reading

P.S. Russel ought to be the consul: he is an American by birth, and is much better qualifi[ed] 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
Irish[?man].

Key: code972_partial.json, pairs.txt, additions972.tsv

09 Sources

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