At a glanceExternal key matched · partial (98% of the cipher)
- The letter
- András Bay to Ferenc Rákóczi II, Jászóvásár (Iași), 8 March 1706.
- Where
- Hungarian National Archives (MNL OL), G15 D 81/5; DECODE R478, listed as undecrypted with no key.
- The cipher
- A two-digit syllabary with a nomenclator of places and peoples and a row of nulls.
- How it was read
- Each of the 94 Rákóczi chancery keys on DECODE was tried and scored against Hungarian; R609 gave running Hungarian at once. DECODE’s transcription was corrected in seven places.
- What it says
- A report on the Muscovite and Polish envoys at the Moldavian court, the Tsar suing Charles XII for peace, and the Swedish army at Vilna.
- Still open
- Group 50, missing from the key, is taken as ba from context; about ten groups on page 2 decrypt letter by letter but not to clear sense.

01 The letter and the key
The letter is one sheet written on both sides. Clear Hungarian passages alternate with runs of comma-separated numbers from 1 to 300 and two signs. It is dated at the foot Jászvásár 8. Martii and signed Bay András. The key is DECODE R609, a Rákóczi chancery key of 1703–1711 in the same fonds. Its letters have homophones (A 7/70, E 8/80, I 9/90, O 6/60, U 5/59), and it has two-digit consonant–vowel syllables (30 ba to 148 vu), short words (27 és, 28 az, 13 hogy, 14 mért) and a nomenclator from 149 to 293 (231 Mosqua, 221 Lengyel, 270 Svéd, 285 Vajda, 252 Porta, 236 Nagyságod). The nulls are 15–19, 200, 300, Ψ and +. The letter uses the nulls 16, 18, 19, 200, 300 and Ψ. An earlier issue of the same table, R561, scored second.
02 The decipherment
Normalised Hungarian. Clear passages are in «»; square brackets mark words supplied or doubtful.
«Kegyelmes Uram! Valamint ez előtt negyed nappal küldött levelemben nyilván meg írtam,» Moszkva és lengyel követek jöttek ide; az lengyel vissza is ment, a moszkva még itt vagyon. Az mint expiscálhattam, olyat mondottak mind ketten: a moszkva békességre kéri a svédet, minden elvött várakat és ezen hadakozásban lött expensáit a svédnek megígérvén, «[ha oly] conditióval, hogy …» ellene a moszkva hadát declarálja-é a svéd «is» colligatióban «légyen». … Az moszkva követ «innét» Constantinápolyba «vagy» Erdélybe megyen, én nem tudhatni; mert csak maga beszéllett az vajdával, görögül. «…» Tegnapi napon az vajda tolmácsával conversatióban lévén, «… in discursu» Pekri uram általa olyat izent a vajdának, hogy csak Nagyságod a magyar nemzet dolgát complanálhassa a némettel, … minden szándéka Nagyságodnak a török ellen való hadakozás. «…» Az tolmácsot [… ?] tudván az barát az Portának szemének és fülének lenni, még nem mondotta; «nékem is» lelkemre kötötte, hogy ki ne adjam őtet. A svéd Vilnához szállott, mely Litvánia és Moszkva-Oroszország között vagyon. «… Jászvásár 8. Martii … Bay András.»
In English. As I wrote four days ago, Muscovite and Polish envoys have come here; the Pole has gone back, the Muscovite is still here. As far as I could fish it out, both said that the Tsar is asking the Swede for peace, promising the Swede all the fortresses he has taken and his expenses in this war, on condition that the Swede declare [war?] against… Whether the Muscovite envoy goes on to Constantinople or to Transylvania I cannot tell, because he talked to the voivode alone, in Greek. Yesterday I talked with the voivode’s interpreter. Pekri had sent the voivode word through him that if only Your Highness can settle the Hungarian nation’s affairs with the Germans [the Emperor] …, Your Highness’s whole intention is war against the Turk. Knowing the friar to be the Porte’s eyes and ears, the interpreter has not yet told him, and he made me swear on my soul not to give him away. The Swede has moved to Vilna, between Lithuania and Muscovy.
03 Method
The record, the DECODE transcription (AJ, 2020) and both images were fetched with the project’s DECODE session. The transcriptions of the G15 key records R549–R646 were fetched too. score_keys.py decrypted R478 with each of them and ranked the results by coverage and a Hungarian 4-gram score: R609 came first at −2.57 per letter, well clear of the unrelated keys, which scored below −3.7. The transcription was then compared with the page images, and seven slips were corrected: iv→10 (jöttek), a clear accented é transcribed as 0, 1257→127 (vajdától), l, i, 86, i→6, 1, 86, 5, a dropped 74 (fülének), a dropped 63 (lelkemre) and the crossed-out signs after 300, 16. R609 gives 59 both as U and as ho; ho fits here (Vilnához). decode.py writes the decipherment.
04 What remains uncertain
- Group 50 is not in R609. It occurs once and is taken as ba from context (barát, the friar), grade C.
- Page 2, lines 5–6: tolmácsot ha az ha az tizéntee [s.] asséraltadé [ö], about ten groups. Every group has its key value, but the sense is not clear; possibly a slip by the encipherer (grade I).
- The clear passages are cursive and only partly transcribed here. Their words in brackets above are grade M.
- Corrected 30 September 2026: five places in the normalised Hungarian had drifted from the decrypt and now follow the groups and their R609 values: vissza is ment (was viszont ismét [elment]), a moszkva békességre kéri a svédet with no hogy (was hogy a moszkva békességet kéri a svédtől), minden elvött várakat, all the fortresses taken (was mindenekelőtt várakat, above all fortresses), Pekri uram általa, through him (was által), and minden szándéka, his whole intention (was mindenben szándéka). The English follows.
Measured: 414 cipher groups, all with a value (one from context); about 404 decipher as sense (97.6%).
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.
Bay to Rákóczi, Jászvásár 8 Mar 1706 read in part
András Bay reports to Ferenc Rákóczi II from Jászvásár (Iași, Moldavia) that Muscovite and Polish envoys have come to the voivode's court and that the Tsar is asking the Swede for peace, offering back the fortresses taken and his war expenses; Pekri has sent word to the voivode that, once Rákóczi settles the Hungarians' affairs with the Emperor, his whole intention is war against the Turk; the Swede has moved to Vilna.
Builds coherent sentences, but under the read bar of 95% of words read as sense (94% here); the holes are marked in the reading.
Transcription
#CIPHERTEXT #CORRECTED against the images 2026-09-21 (bay1706) #CATALOG NAME: NAH_G15_CAPS_D_FASC_81_5 #IMAGE NAME: 3620.png-3621.png #TRANSCRIBER NAME: AJ #DATE OF DESCRIPTION: May 16, 2020 #TRANSCRIPTION TIME: 2 h #TRANSCRIPTION METHOD: Manual #COMMENTS: #IMAGE NAME: 3620.png <CLEARTEXT HU ???mes Vram> <CLEARTEXT HU Valaminre? el?tt negjen? na??al ??l??tt levelem? ny??? me? ??tam> 2 3 i , 2 7 , 2 2 i , 2 i 9 , 8 0 , 7 7 , 1 0 , i , 8 6 , 1 2 5 , 7 7 , 9 , 4 i , 2 8 , 2 2 i , I 4 6 , 2 5 , 7 , 9 , 8 5 , 9 4 , 8 i , 8 6 , 7 0 , 2 3 i , 9 4 , 7 5 , 9 , 8 6 , 8 6 , i 4 4 , 8 i , 2 4 , 9 5 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7 5 , i 8 4 , i , 7 5 , i 0 0 , 7 8 , 3 0 0 , i 6 , <STRUCK signs> , <CLEARTEXT HU kör?leneg em??l vi> , , <CLEARTEXT HU ?élreh?én i??at?m nyo??> , i 2 5 , 7 5 , 9 8 ,i 0 6 , 9 8 , 1 0 7 , 8 i , 2 8 , 2 8 5 , i 2 7 , 7 8 , 9 3 , 2 0 , 7 0 , i 4 4 , 7 8 , 3 8 , 8 i , i 4 5 , 8 4 , i i 9 , i 2 6 , 6 , 2 9 , 6 8 , 1 4 5 , 8 i , i 6 , 2 0 0 , i 9 , Ψ <CLEARTEXT HU h????tt eli in Dis????> <CLEARTEXT HU sic?> 2 8 2 , <CLEARTEXT HU mun?ja né?em ?iu?n volt> 1 0 5 , 7 7 , i i 6 , 2 8 2 , <CATCHWORD ø> #COMMENTS: I could not identify the sign that comes after vinegar or the first sign in the last line of ciphertext. #IMAGE NAME: 3621.png <CATCHWORD ø> 7 0 , 7 8 , i 2 4 , 6 7 , 6 , 2 3 , 7 0 , 8 6 , 9 , i 3 5 , 8 i , 8 6 , 7 0 , 2 8 5 , i i , i 3 , 2 0 , 7 , 7 7 , 2 3 6 , 7 , 2 2 6 , 9 9 , 7 9 , i 3 5 , 8 6 , 4 3 , 7 8 , 5 i , 7 0 , 8 6 , 3 8 , 7 9 , 8 2 , 6 7 , 9 8 , 7 8 , 5 6 , 8 5 , i i 9 , 7 0 , 2 3 8 , 8 , 6 , 1 , 8 6 , 5 , 9 5 , 8 i , 4 i , 8 i , 2 5 , 7 0 , 8 i , 4 i , 6 2 , 2 3 6 , i i , 7 , 2 7 9 , 8 0 , 7 8 , 6 8 , 8 i , i 4 4 , 9 i , 5 6 , 4 0 , 6 5 , i 3 4 , 8 5 , <CLEARTEXT HU ???n ?olog?ul le???ie ?érdett?> 2 8 , i 2 7 , 7 8 , 9 3 , 2 0 , 6 0 , 8 6 , 5 6 , 2 8 , 5 6 , 2 8 , 8 6 ,9 , i 3 5 , 8 i , i 2 5 , 8 , <CLEARTEXT HU s.> 7 0 , 8 5 , i 2 0 , i i 4 , 7 8 , i 2 4 , 4 i , <CLEARTEXT HU ö> i 2 8 , 7 3 , i 4 4 , 8 i , 2 8 , 5 0 , i i 4 , 8 6 , 2 8 , 2 5 2 , _ i i , 2 5 , 8 0 , 9 4 , 9 9 , 7 7 , 2 7 , 7 4 , i 0 0 , 6 8 , 9 9 , 7 7 , 6 8 , 8 i , 1 0 i , 9 4 , 7 5 , 9 9 , 7 9 , 9 6 , 8 i , 4 3 , 8 6 , i 2 4 , <CLEARTEXT HU nékem is> 6 8 , 7 8 , 6 3 , 7 9 , i i 5 , 7 7 , i , 8 6 , i , 8 6 , i 2 5 , i 3 , 6 4 , 9 9 , 7 0 , 7 3 , 2 2 , 7 , 7 9 , i , i 2 5 , 8 6 , 7 0 , 2 7 0 , i 4 6 , 7 8 , 9 8 , 5 9 , 8 9 , 2 5 , 7 0 , 7 8 , 9 i , 8 6 , <CLEARTEXT HU meh?> 6 9 , i 4 4 , i 0 i , 7 , 2 7 , 2 3 i , 2 4 4 , 7 7 , i , 8 9 , 1 , 8 6 , 8 6 , i 4 4 , 2 2 , 6 0 , 8 i <CLEARTEXT: tov?? is ??reles> <CLEARTEXT HU Ligen Brent Ng?var mimeml??l alája??ssan ????o?itam?m> <CLEARTEXT HU el ?n? mula?m mava?ian ??e???ttai?> <CLEARTEXT HU ?g?inah mint jo ki?mes vram?> <CLEARTEXT HU ?as? vá?á? 8. Ma?> <CLEARTEXT HU Airo?> <CLEARTEXT HU ??a? Hive % mél?a?am ?ulgija> <CLEARTEXT HU ?? a? A?rás ?>
Decryption
# Bay to Rakoczi, Jaszvasar 8 March 1706 (DECODE R478): reading. Copied verbatim from NOTES.md, "Reading (normalised)"; the raw key output is R478_read.txt. ### Reading (normalised; cipher in plain type, clear passages in «») «Kegyelmes Uram! Valamint ez előtt negyed nappal küldött levelemben nyilván meg írtam,» Moszkva és lengyel követek jöttek ide; az lengyel vissza is ment, a moszkva még itt vagyon. Az mint expiscálhattam, olyat mondottak mind ketten: a moszkva békességre kéri a svédet, minden elvött várakat és ezen hadakozásban lött expensáit a svédnek megígérvén, «[ha oly] conditióval, hogy a ki[rály]» ellene a moszkva hadát declarálja-é a svéd «is, [ha nem]» colligatióban «légyen». Reményik(?), hogy szándékoznék; az moszkva követ «innét» Constantinápolyba «vagy» Erdélybe megyen, én nem tudhatni; mért csak maga beszéllett az vajdával, görögül. «…» Tegnapi napon az vajda tolmácsával conversatióban lévén, «… elő in discursu» Pekri uram általa olyat izent a vajdának, hogy csak Nagyságod a magyar nemzet dolgát complanálhassa a némettel, … minden szándéka Nagyságodnak a török ellen való hadakozás. «…» Az tolmácsot [? ha az … asseráltad-é ?] tudván az barát az Portának szemének és fülének lenni, még nem mondotta; «nékem is» lelkemre kötötte, hogy ki ne adjam őtet. A svéd Vilnához szállott, mely Litvánia és Moszkva-Oroszország között vagyon. «Továbbá is … Jászvásár 8. Martii … Bay András.» English gist: As written four days ago, Muscovite and Polish envoys have come here [to the Moldavian court]; the Pole has gone back, the Muscovite is still here. Both said the Tsar is asking the Swede for peace, promising him all the fortresses he has taken and his war expenses, on condition that [Charles XII] declare against... [text uncertain]; whether the Muscovite envoy goes on to Constantinople or Transylvania I cannot tell; he talked with the voivode alone, in Greek. Yesterday, in conversation with the voivode's interpreter: Pekri sent word to the voivode through him that if only Your Highness can settle the Hungarian nation's affairs with the Germans [the Emperor] ..., Your Highness's whole intention is war against the Turk. The interpreter, knowing the friar to be the Porte's eyes and ears, has not told him; he made me swear not to give him away. The Swede has moved to Vilna, between Lithuania and Muscovy.
Decryption
«???mes Vram» «Valaminre? el?tt negjen? na??al ??l??tt levelem? ny??? me? ??tam» [Mosqua]és[Lengiel][Köver]ekjöttekidéaz[Lengiel]viszaisménta[Mosqua]mégittvannymintexpiscalhattamolyamondottakmindkéttena[Mosqua][Bekessey]rékéria[Svéed]etmindénelvöttvarakatésezénhadako-zasbanlöttexpé·saita[Svéed]nekmégigérvén «?? com??tio?al log? a ?i» elléna[Mosqua]hadatdéclaraloée[Svéed] «is???n» [Colligat]joban «lé?j?n» oépmrémongyak[hogy]szandékoznékaz[Mosqua][Köver] «innér» [Constantinap]olyba «vayy» [Erdely]bémégyen «é» némtudhatni[mért]csakmagabészellétaz[Vajda]valg[elés]ögül·· «kör?leneg em??l vi» «?élreh?én i??at?m nyo??» tegnapinaponaz[Vajda]tolmacsavalconvérsatiobanlévén···Ψ «h????tt eli in Dis????» «sic?» [uram] «mun?ja né?em ?iu?n volt» pékri[uram]altalaolyatizénta[Vajda]nak[hogy]csak[Nagisagod]a[Magiar]némzétdolgaatcomplanalhassaa[Nemet]eoötumindénszandéka[Nagisagod]naka[Török]ellénvalohadakozas «???n ?olog?ul le???ie ?érdett?» aztolmacsothaazhaaztizéntee «s.» asséraltadé «ö» tudvanazbarataz[Porta]_nakszeménékésfülénéklénnimégnémmondotta «nékem is» lélkémrékötötte[hogy]kinéadgyamöteta[Svéed]vilnahozszallot «meh?» livaniaés[Mosqua][Oroszay]közöttvagyon «is ??reles» «Ligen Brent Ng?var mimeml??l alája??ssan ????o?itam?m» «el ?n? mula?m mava?ian ??e???ttai?» «?g?inah mint jo ki?mes vram?» «?as? vá?á? 8. Ma?» «Airo?» «??a? Hive % mél?a?am ?ulgija» «?? a? A?rás ?»
Reading
<!-- Reading of R478 (Hungarian), the body of texts/R478_decryption.md ("Reading (normalised)" in NOTES.md) under a ## Reading heading so that it is scored alone (verification 5, 23 Oct 2026, Claude Opus 5.5). Cipher in plain type, clear passages in «»; [? ... ?] and … = unread or doubtful. Key: G15 key R609 (NOTES.md). -->
# Bay to Rákóczi, Jászvásár 8 March 1706 (DECODE R478)
## Reading
«Kegyelmes Uram! Valamint ez előtt negyed nappal küldött levelemben nyilván meg írtam,» Moszkva és lengyel
követek jöttek ide; az lengyel vissza is ment, a moszkva még itt vagyon. Az mint expiscálhattam, olyat
mondottak mind ketten: a moszkva békességre kéri a svédet, minden elvött várakat és ezen hadakozásban lött
expensáit a svédnek megígérvén, «[ha oly] conditióval, hogy a ki[rály]» ellene a moszkva hadát declarálja-é a svéd
«is, [ha nem]» colligatióban «légyen». Reményik(?), hogy szándékoznék; az moszkva követ «innét» Constantinápolyba
«vagy» Erdélybe megyen, én nem tudhatni; mért csak maga beszéllett az vajdával, görögül. «…» Tegnapi napon az vajda
tolmácsával conversatióban lévén, «… elő in discursu» Pekri uram általa olyat izent a vajdának, hogy csak
Nagyságod a magyar nemzet dolgát complanálhassa a némettel, … minden szándéka Nagyságodnak a török ellen való
hadakozás. «…» Az tolmácsot [? ha az … asseráltad-é ?] tudván az barát az Portának szemének és fülének lenni, még
nem mondotta; «nékem is» lelkemre kötötte, hogy ki ne adjam őtet. A svéd Vilnához szállott, mely Litvánia és
Moszkva-Oroszország között vagyon. «Továbbá is … Jászvásár 8. Martii … Bay András.»Translation
<!-- English gist of texts/R478_reading.md, copied from texts/R478_decryption.md (23 Oct 2026, verification 5). --> # Bay to Rákóczi, Jászvásár 8 March 1706: English gist As written four days ago, Muscovite and Polish envoys have come here [to the Moldavian court]; the Pole has gone back, the Muscovite is still here. Both said the Tsar is asking the Swede for peace, promising him all the fortresses he has taken and his war expenses, on condition that [Charles XII] declare against... [text uncertain]; whether the Muscovite envoy goes on to Constantinople or Transylvania I cannot tell; he talked with the voivode alone, in Greek. Yesterday, in conversation with the voivode's interpreter: Pekri sent word to the voivode through him that if only Your Highness can settle the Hungarian nation's affairs with the Germans [the Emperor] ..., Your Highness's whole intention is war against the Turk. The interpreter, knowing the friar to be the Porte's eyes and ears, has not told him; he made me swear not to give him away. The Swede has moved to Vilna, between Lithuania and Muscovy.
05 Sources
- Magyar Nemzeti Levéltár Országos Levéltára, G15 Caps. D. Fasc. 81. 5; images via DECODE record R478 (not reproduced beyond the lead crop; archive’s permission required).
- Key: G15 Caps. C. Fasc. 43. 56, DECODE R609 (transcription NM, 2020); earlier issue R561.
- Related: Pápai to Rákóczi, 1706–10, deciphered the same way with a G15 key record.
Transcription, key scorer and decoder: targets/bay1706/ in the repository.