中文譯本 · 原作 Daniel Bourdeau《Unsolved Historical Ciphers》 以 CC BY 4.0 釋出,本頁由 JIC 翻譯,非原作者官方版本,譯文如有出入以英文原頁為準 · 檢視英文原頁 ↗
47 86 △ 110 33 · 93 122 中 41 112 · 61 116 88 □ 77 70 28
800 · 588 · 873 · 291 588 45 135 52 25 20 50 81

牛津 → 海牙 · 帶小型程式碼的同音替換數字密碼 · 1643年

查理一世與 Nicholas 致 Boswell

查理一世
寄自查理一世

1643年11月2日 · The National Archives, SP 84/157 ff. 217 和 219(State Papers Foreign, Holland)

字母表是 Robert Pitt 的(2026年9月),這裡加以套用。新增的內容:字母表的統計對照、四個圖形符號的取值、國王信件的收信人,以及兩封信的解密

Daniel Bourdeau · 釋出於 · 更新於

方法:用已知金鑰讀出 · 範圍:完整

摘要。同一天的兩封密信,S. Tomokiyo 於2021年做了暫定轉錄,並把它們列入沒有已知解讀的密碼之中。Robert Pitt 於2026年9月14日發表了字母表:一行24個字母在數碼20–115上重複四遍,116–159是按字母順序分塊的補充同音符,20以下是虛碼,另有四個詞程式碼。字母表是他的;這裡加以套用。本頁增加了驗證和解密。一項置換對照顯示,在同一週期結構上,Pitt 的字母行比20,000個隨機字母行高出9.6個標準差,沒有一個隨機行能與之相當。Pitt 的筆記中未能解釋的四個圖形符號是詞符號:抄寫員在逐字母拼出某個詞的地方把相應符號寫在旁邊(good、Cousin、Master、us),此後便單獨使用該符號,所以那三段帶框的文字解密為“our good Cousin your Master”(我們的好堂親、您的主上)。國王的信是寫給庫爾蘭公爵的使節的,此人當時滯留在海牙:這是國王的答覆和回任國書,按 Nicholas 附函所說,經由 Boswell 轉交,用的是 Boswell 自己的密碼。Simpson 1893年刊印的國王同日致公爵的平行信件證實了這一點,並給出 291 = Duke。完成程度:兩封信均已解密,只有十來個只出現一次的詞程式碼除外;這些以及一些轉錄筆誤需要檢視原件,而原件不在網上。

01 文獻

TNA Discovery 把這兩份檔案著錄到了張一級:SP 84/157/96, f. 217, “Charles I to Boswell — in cipher”和SP 84/157/97, f. 219, “Nicholas to Boswell — in cipher”,日期都是1643年11月2日。網上沒有影象。Tomokiyo 的轉錄(部落格,2021年9月17日)在他不確定之處標了星號,是唯一的文字;Pitt 的輸入與之逐行相同。Sir William Boswell 是國王駐海牙的公使;Sir Edward Nicholas 是在牛津的國務大臣。

兩封信合計:455個數字碼組,171個不同取值,69個只出現一次。按用途,各區段區分得很清楚:

區段出現次數不同取值只出現一次性質
0–1945174虛碼(任何讀法都用不到它們)
20–1152768017字母表:24個字母 × 4個同音符(預計96個,見到80個;q z未使用)
116–159613114a d e i m n o r s t u y的補充同音符,按字母順序分塊
160–399252219詞程式碼,另有虛碼塊 361–386
400–999482115詞程式碼(續):800 to ×14,588 of ×7,873 you ×6

02 金鑰(Pitt 的字母表)

plain   a  b  c  d  e  f  g  h  i  k  l  m  n  o  p  q  r  s  t  u  w  x  y  z
1st     20 32 21 33 22 34 23 35 24 36 25 37 26 38 27 39 28 40 29 41 30 42 31 43
2nd     44 56 45 57 46 58 47 59 48 60 49 61 50 62 51 63 52 64 53 65 54 66 55 67
3rd     68 80 69 81 70 82 71 83 72 84 73 85 74 86 75 87 76 88 77 89 78 90 79 91
4th     92 104 93 105 94 106 95 107 96 108 97 109 98 110 99 111 100 112 101 113 102 114 103 115

即 letter = row[(n − 20) mod 24] 字母行為a c e g i l n p r t w y b d f h k m o q s u x z——先是24字母字母表(無j,無v)的奇數位,然後是偶數位。每個字母的四個取值相隔24。它與 Tomokiyo 描述的 Scudamore(1636年)、Cave(1638年)和 Ormonde–Clanricarde(1643年)的常規斯圖亞特金鑰屬於同一型別,也與Maltravers–Ormonde金鑰同類。補充區塊116–159是五段按字母順序排列的序列(a d e · m n o r s t y,a d e · n o · t u,……),所以即使是沒見到的取值也受到約束;142 = s 是這裡根據 Nicholas 信的開頭“[His Majesty] comands”補上的。

03 驗證

由四個或更多字母表碼組構成的21段極大連續串(共106個字母),用一個以270萬字元的17至19世紀英語構建的四元語法模型打分。零假設是在同一週期結構上對24個字母的身份做置換。

得分
Pitt 的字母行−217.5
20,000個隨機字母行:均值 / 標準差 / 最佳−333.7 / 12.1 / −271.1
z 值;得分至少一樣好的字母行9.6;20,000箇中0個

自由週期掃描(對週期20–32的24字母行做模擬退火)並不具有決定性,這裡如實記錄:在106個字母上,退火會過擬合,週期27–32的得分反而高於真金鑰。支援週期24的論據是結構性的(奇偶位構造、相隔24的同音符、按字母順序的補充區塊),而與明寫部分吻合的解密結果(“A C · · knowledge”,“[835] D E R stand”,以及與 Simpson 的“Our Re-credentials”對應的“Y O U R E [C] R E D E N T I A L S”)就是證實。

04 四個符號

Tomokiyo 轉錄了四個圖形符號:△、中、□ 和 +。每個都在一個逐字母拼寫的詞內部出現一次,之後則單獨出現,而單獨出現時的組合方式,恰好與嵌入時所預示的一致。

符號嵌入出現單獨出現取值
△47 86 △ 110 33 = GO△OD“back to OUR △ 中 873 □”good
中93 122 中 41 112 = CO中US-in“Our 中 873 □ S affeccons”,“our said 中 873 □”,“our △ 中 873 □”Cousin
□61 116 88 □ 77 70 28 = MAS□TER同樣的三處Master
+158 + 150 = U+S(“inuiting us”)“acceptable to +”,“preiudiced +”,“to + to the port of”,“addres by 213 to +”us

所以 △ 中 873 □ 就是“good Cousin your Master”。抄寫員在逐字母拼出某個詞的地方把符號寫在旁邊(比較 Ormonde 信中的“for whom 270 thus hereafter”,那裡一個程式碼就是在行文中引入的),而轉錄把符號放到了詞的中間。這正是 Pitt 的筆記說還缺少的解釋;有了它,873 = you / your 在全部六處都說得通。

05 解密

方括號內為程式碼,花括號內為建議的轉錄修正,拼寫按密文所給。

查理一世致庫爾蘭公爵的使節,牛津,1643年11月2日(f. 217):

Sir, Wee have received your ciuill {&} welcom letter of the {6th} of 8ber 1643. But never heard of any [514] letter of Our good Cousin the Duke of Curland’s, your Master, saue those inuiting us to send to the Funerals of the Late [303] Dukes his Father & Unkle [376] deceased of happy memory; to [which] we made an answer, but know not whether the same arriued [289] safe. The Difficulty of passage {we} feare {hath} preiudiced us. Our Cousin your Master’s affeccons & offers are soe reall & acceptable to us, specially in this coniuncture of our Affaires, as we acknowledge [our] [selves] there[by] highly obliged. We [pray] you therefore to present our princely thanks [177] on this behalf, to [assure] our said Cousin your Master, & to lett him understand that we shall most [wel]comly receiue his [assistance] with in [755] [188] [musket]s, match & [powder], in {what} [pro]por[tion] it shall please him to transmit the same to us, to the [port] of Weymouth, Dartmouth, Exeter, Falmouth or [228]. Not doubting but God will shortly enable Us to recompence soe free & soe [gener]ous a c[591] & es[126]. Doe assure your self also of our fauour particular, & doe take your addres by [213] to us in very good part, as also that you haue taken care to avoyde the dangerousnes of the passage hither. And soe wishing you a safe returne back to our good Cousin your Master, to whom w[e] herewith [send] your re-credentials, Wee commit you to the Protection of the Almighty. Given at our court at Oxford the second day of Nouember in the Nineteenth yeare of Our Reigne 1643.

Nicholas 致 Boswell,1643年11月2日(f. 219):

Sir, [His Majesty] comands [me] to signify his pleasure to you, that you use all possible diligence & industry by your meanes of the [170] & otherwise [secret]ly to hinder the coming ouer of the [181]s from the [726], for it is here apprehended that they [will] doe more hurt then good, for that they [are] understood here not to affect Monarchy. His Majesty’s two letters herewith sent with flying Seales are put into your character, because most safe & ready; you are to decifer & interpret them. Monsieur F I R X S S appeares not here. …

有取值的詞程式碼:800 to,588 of,873 you/your,291 Duke(來自 Simpson 刊印的致公爵信中的密文行 291 588 C U R L A N D ),516 letter,835 un-,749 selves,750 send,205 assure,223 by,629 pray,640 port,636 pro-,406 gener-,484 His Majesty,746 secret-。排序後,可讀的程式碼按字母順序排列(a 170–228 … d 291 … o 588–591 … s 726–755,t 800,u 835,y 873),所以這份名碼本大概是一張按字母順序排列的表;再有一封用這個金鑰寫的信就能檢驗這一點。

06 這兩封信是什麼

07 方法、致謝與檔案

  1. Pitt 的倉庫 robertpitt/charles-i-boswell-cipher (MIT 許可;commit 609ebf4,2026年9月14日)在本次工作之前就已有字母表、補充同音符、大部分虛碼和四個詞程式碼。字母表請引用該倉庫。
  2. 區段統計和解碼器(targets/boswell/key.py);四元語法模型(lm4.py);置換對照(permtest.py);週期掃描(periodscan.py).
  3. Simpson 1893 和 CSPD 1641–43 取自 Internet Archive 的 OCR;TNA 的編號取自 Discovery API。

已核查:Pitt 的輸入與部落格文字對照;字母表與20,000個置換字母行對照;每一處解密與記號對照;Simpson 刊印的信件和備忘錄;TNA 和 CSPD 的編號。未核查:手稿(網上沒有影象);Pitt 引用的拉脫維亞檔案說明。使節為 Firks 這一身份認定、字母順序假說以及所提出的轉錄筆誤,都是推斷,在轉述之前需要核實。

08 資料來源

分析指令碼和密文都在倉庫中(targets/boswell/).