中文譯本 · 原作 Daniel Bourdeau《Unsolved Historical Ciphers》 以 CC BY 4.0 釋出,本頁由 JIC 翻譯,非原作者官方版本,譯文如有出入以英文原頁為準 · 檢視英文原頁 ↗
1394 · 1116 · 1273 · 250 · 1165 · 1405
972 · 148 · 1459 · 1482 · 1201 · 821
1320 · 384 · 1280 · 1216 · 1481 · 1483

美國 · 外交程式碼 · 1808

Armstrong 致 Madison 的程式碼附言,1808

John Armstrong
發信人John Armstrong
James Madison
收信人James Madison

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

“THE = 972”程式碼是根據國務院自己用鉛筆寫在 Armstrong 1806年急件上的解碼,以及 Tomokiyo 的部分程式碼表復原的,然後套用到這則附言上:49個碼組中有48個讀得通,最後一個改動一位數字後也讀得通。Tomokiyo 的表覆蓋了附言中約三分之一的碼組;在檔案、出版物或網上都沒有找到完整的解讀。

Daniel Bourdeau · 釋出於 · 更新於

方法:外部明文復原金鑰 · 範圍:完整

摘要。美國駐法國公使 John Armstrong 在給國務卿 James Madison 的一封私人信件(Bourbon-l'Archambault,1808年8月30日)末尾,附了一則由49個數字碼組組成的附言。這封信刊於 Founders Online,附言未經解讀;S. Tomokiyo 的 Unsolved Historical Ciphers 收錄了它,並給出約三分之一碼組的部分讀法,那是根據一封已知明文的信得出的。這套程式碼是 Armstrong 在1804年至1810年間使用的一種詞與音節程式碼,約1,600個碼組,按慣例以它表示“the”的碼組972命名,從未公佈過。這裡是從另一個來源復原的:國務院急件簿的縮微膠捲(NARA M34,roll 13),國務院的一位書記在1806年10月一份長篇急件的每個碼組上方都用鉛筆寫了解碼。現已知約580個碼組,足以解出整則附言,以及1808年2月22日另一封程式碼信件的大部分。解碼後的附言:
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.

相關頁面:據說用這套程式碼寫成的 John Quincy Adams 聖彼得堡急件,其實用的是另一套;而 Erving 1807年的信用的是 Pinckney 的程式碼:兩套使館程式碼。

01 文獻

這是一封“私人”信件,寫於溫泉小鎮 Bourbon-l'Archambault,Armstrong 當時正在那裡療養。它的明寫部分是對 Madison 7月20日私人來信的答覆:它駁斥了 Fulwar Skipwith(即將離任的駐巴黎商務代理)的抱怨,提醒說禁運在法國“not felt”,在英國則已被“forgotten”;而對於使館秘書、巴黎領事職位的候選人 David Bailie Warden,只說了一句“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.”Armstrong 不願明寫的看法,隨後以程式碼寫在附言裡。

Armstrong 親筆寫的程式碼附言
附言,Library of Congress,Madison Papers reel 10,frame 0521(區域性)。碼組之間用點隔開;and、much better、In a word、in general. Next to、but 這些詞是明寫的。影象:Library of Congress,James Madison Papers,Series 1,reel 10,frame 0521,來自 loc.gov。

Founders Online(Early Access 文獻 99-01-02-3466,出自即將出版的 Papers of James Madison, Secretary of State Series)把碼組印作如下;手稿的讀法有一個碼組與之不同(§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.

手稿中第二行以“972.”開頭(Founders 的“970.”是 the 的誤印)。

02 程式碼

Armstrong 在1804年至1810年間從巴黎發出的急件使用一套大型程式碼,其中 972 = the。Ralph Weber 對美國外交程式碼的綜述指出,在美國駐法公使急件(Despatches from United States Ministers to France,DUSMF,NARA Record Group 59,microcopy M34,rolls 13–14)中,約有四十封信使用這套程式碼。Armstrong 1808年2月20日那封信用的不是這套程式碼,而是另一套獨立的系統,其金鑰尚未復原。復原出來的結構如下:

03 金鑰的來源

3.1 1806年5月4日那封已知明文的信

有一封信的程式碼原件和明文抄本都留存了下來:Armstrong 1806年5月4日致 Madison 的信(Founders 99-01-02-0393),談的是西班牙公使發現了有關佛羅里達的機密提議。Tomokiyo 已經用它給約230個碼組定了值,其中幾個標為存疑。這為本文提供了68個可靠值作為基礎,其中包括 the, of, to, is, he, a, and, by, in, s, n,也顯示了字母順序的排列方式。

3.2 國務院的鉛筆解碼(M34 roll 13)

主要來源是縮微膠捲本身。NARA 已把 M34 roll 13(“Nov 12 1804 – Dec 27 1807”,目錄 ID 188671172;393幀)數字化。第0192–0201幀載有1806年10月的一份長篇政治急件(寫於 Lauderdale 勳爵離開巴黎後不久,帶來“two Russian armies now entering Silesia”的訊息),其中每個程式碼組上方都有書記寫的解碼。對整卷做了一遍打分,尋找遠離墨跡的淺中灰畫素,從而定位了帶註釋的幀;然後逐幀目視轉錄這些配對,並記錄置信度等級及其幀號/行號。

第13卷,第0200幀:每個碼組上方都有鉛筆解碼的程式碼急件
M34 roll 13,第0200幀,右頁(急件第13頁)。墨跡:Armstrong 的碼組;上方的鉛筆:國務院的解碼:“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 …”。影象:U.S. National Archives,RG 59,microcopy M34 roll 13,第0200幀,來自 National Archives Catalog。

以這種方式收集到約500對,其中352對可以有把握地辨認。與1806年5月4日的值合併後,程式碼表共有580個不同的碼組(§7)。鉛筆字跡中的歧義(這卷是1940年代對淺淡石墨字跡拍攝的縮微膠捲)透過兩項要求來解決:每種讀法都必須落在它的字母順序位置上,並且在各幀之間一致地重複出現。

3.3 插值

附言和二月那封信需要的碼組中,有二十個不在這兩個來源裡。每一個都先根據上下文推斷,再對照它在字母順序中的位置核查;二十個全部吻合。例如:1394 位於 1393 purp 和 1395 Italy 之間,必定開啟一段新的序列,它在三個彼此獨立的地方都給出 ru(ru-in、Et-ru-ria、Y-ru-jo);250 位於 249 other 和 252 own 之間,讀作 ought;1273 位於 1272 eight 和 1279 Emp 之間,讀作 el;384 位於 383 w 和 385 was 之間,讀作 ward;1320 位於 1319 li 和 1325 long 之間,讀作 like;1483 位於 1482 is 和 1484 it 之間,讀作 ish。

3.4 對照文字:1808年2月22日的信

Armstrong 1808年2月22日的私人信件(Founders 99-01-02-2733)在一篇明寫的歐洲政治綜述中嵌有約150個碼組。它與那封已知明文的信沒有共同的關鍵碼組,因此可作為獨立的檢驗。用合併後的程式碼表,它解碼如下(有缺口):

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 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)證實了程式碼表,並確定了附言中用到的 ru、ish、Russia(305,第0200幀的鉛筆也給出這個值)等值。其中有一個碼組反常:946 在1806年5月4日的信中是 on,但在 Gustavus 裡必定是 Gu(別處 914 = gu):要麼是同音符,要麼是手稿或轉錄中的筆誤。

04 附言的解讀

碼組值來源碼組值來源
1394Ru推斷;ru-in, Et-ru-ria, Y-ru-jo1013di1806年5月4日
1116s鉛筆;1806年5月4日750da鉛筆(Mol-da-vi-a)
1273el推斷(1272 eight < el < 1279 Emp)967te鉛筆
250ought推斷(249 other < ought < 252 own)1459he鉛筆;1806年5月4日
1165to鉛筆;1806年5月4日1482is鉛筆;1806年5月4日
1405be鉛筆(四幀)1202above位置 1201 a < above < 1209 Agent
972the鉛筆;1806年5月4日1561men鉛筆(thirty thousand men)
148consul位置 146 confide < consul < 151 contrary927him1806年5月4日
1459 1482he is1090in鉛筆;1806年5月4日
1201a鉛筆;1806年5月4日1052fit位置 1050 fi < fit < 1062 fol
821n鉛筆;1806年5月4日832ness鉛筆
130America位置 128 yesterday | America < 137 between(新的一段)1482is
821n934O鉛筆(ag-o);1806年5月4日(vi-o-late)
1429by鉛筆;1806年5月4日510mea鉛筆(mea-sures)
720bir推斷(719 Ba < bir < 723 bo)860ly鉛筆;1806年5月4日
970th鉛筆(stre-en-th)1459 1482he is
1482is1320like推斷(1319 li < like < 1325 long)
992qua推斷(< 993 qui)384Ward推斷(383 w < ward < 385 was)
1319li1806年5月4日(catho-li-c)1280en鉛筆;1806年5月4日(se-en)
1048fi(ed)推斷(1046 fi … 1052 fit)1216an鉛筆;1806年5月4日——手稿作 1216,Founders 作 1218
584than鉛筆(第0194幀)1481ir鉛筆;1806年5月4日
687any鉛筆1483ish推斷(1482 is < ish < 1484 it);Dan-ish
249other鉛筆;1806年5月4日555[man]手稿 555 = re;視為 1555 man 的筆誤(見§6)
736can鉛筆(can deceive)

綠色 = 第13捲上的鉛筆解碼 · 藍色 = 1806年5月4日的已知明文 · 琥珀色 = 讀法不確定或按位置推斷 · 紅色 = 這裡根據上下文和字母順序位置推斷

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 人物

05 方法

  1. 收集密文。彙集了 Founders Online 上 Armstrong 各封程式碼信件的轉錄(1806年5月4日、1808年2月22日、1807年9月、1808年8月30日),並調取了8月30日那封信的 LOC 手稿影象用於校勘。
  2. 定位已解碼的急件。下載了 NARA 目錄中 M34 roll 13 的條目(393幀)。瀏覽這卷膠片時,用一個簡單的影象得分(不與深色墨跡相鄰的中灰畫素所佔比例)作為初篩輔助;帶註釋的第0190幀和第0192–0201幀經目視確認。2026年9月16日對全部393幀重新執行時,這個得分單靠自身並不能定位它們:灰色的空白頁得分高於帶註釋的頁面,只有在把得分限制在墨跡附近的行間區域後,10月那份急件最密集的第一頁才排名靠前(392幀中第三)。見 targets/armstrong/NOTES.md。
  3. 採集。每個帶註釋的幀被裁成三部分,增強對比度,逐組轉錄;每一對都記錄了幀號/行號和置信度等級(H/M)。在多幀中出現的碼組做了交叉核對。
  4. 合併與排序。一個指令碼合併1806年5月4日的值、採集到的配對和推斷值,按 H > C > M > 推斷的順序給讀法排序,並在呈現任何程式碼段落時標出未知值和存疑值。
  5. 推斷與驗證。其餘的缺口根據上下文填補,並對照字母順序位置核查;1808年2月22日的信作為獨立對照。
  6. 校勘手稿。把 LOC 的附言影象放大,逐組對照 Founders 的文字核查。

06 對刊印轉錄的更正,以及一處遺留的疑問

供各目錄參考。Armstrong 致 Madison 的附言,1808年8月30日(Tomokiyo,Unsolved Historical Ciphers,“Armstrong to Madison”第1項)已在上文完整解碼;49個碼組中有48個已確定,第49個很可能是 man 的筆誤。下面這份580個碼組的程式碼表,供解讀 DUSMF rolls 13–14 和 Madison Papers 中 Armstrong 1804–1810年的其他程式碼急件之用,其中大多數沒有解碼。

07 試用金鑰

貼上以空格或點分隔的碼組;明寫的詞可以保留在原處。每個碼組上方會顯示其值,就像國務院書記用鉛筆寫的那樣。顏色:綠色為鉛筆解碼或已知明文,琥珀色為不確定,紅色為推斷; ? = 未知碼組。

重建的程式碼表(580個碼組)

等級:H 為鉛筆解碼(roll 13),C 為1806年5月4日的已知明文,M 為不確定的鉛筆讀法或按位置推斷,I 為這裡推斷。附幀號的源資料: targets/armstrong/pairs.txt 在程式碼倉庫中。

08 資料來源

所用程式碼(Python:幀打分、程式碼表合併和渲染器)以及採集到的配對列表都在程式碼倉庫中。