x8=L7y2 Hnyy3+8 7 x7CCB8H3++8
s o l d a t i · m e t t a n o · a · s a c c h o m a n n o
x = s · 7 and 3 = a · CB = ch

Lorenzana → Averardo de’ Medici · letter cipher with homophones · 17 April 1432 · key recovered from adjacent plaintext

Bernardo d’Alamanno de’ Medici to Averardo de’ Medici, Lorenzana, 17 April 1432

Go to the full text ↓

Bernardo reports Florence’s order to strip five castles of their defences and asks whether his soldiers are to plunder the poor; the cipher words decode with a key rebuilt from a deciphered letter of December 1431.

Daniel Bourdeau · posted

Method: key from adjacent plaintext · Extent: complete

Contributed by Andrew Aymeloglu (solution) · Also credited · Contemporary key or decipherment (key or decipherment used)

At a glanceKey from adjacent plaintext · complete

The letter
Bernardo d’Alamanno de’ Medici to Averardo de’ Medici, Lorenzana, 17 April 1432: one page of Italian with 58 words in cipher among the clear words. A slip with a clear postscript is filed with it.
Where
Archivio di Stato di Firenze, Mediceo avanti il Principato, filza V, doc. 196, c. 208r. The archive’s reproductions are linked below and none is shown here. Catalogue entry 2954, found by the project’s survey of the filza on 15 November 2026. No DECODE record.
The cipher
One sign for each letter, with two signs for a, e, i, o and u: 25 different signs in 339 places. Names are spelled out. There are no code words and no nulls.
How it was deciphered
Twenty values come from the decipherment written at the time above the cipher of Bernardo’s letter of 8 December 1431, in the same file. Five more come from the words of this letter. The twenty were then tried on a third letter, of 9 December 1431.
What it says
The Ten have ordered Bernardo to take down the fortifications of Parlascio, Castelnuovo, Santa Luce, San Regolo and Lorenzana, and to lay hands on Chianni. He doubts that Chianni could be relieved, and asks whether the soldiers are meant to plunder the poor: “una gran crudeltà”.
Still open
Nothing in cipher is without a value. Two cipher words lack a letter as written (Lorezano, lascire). Four clear words are doubtful and two short clear passages give no sense. No person has checked the transcription or the reading.
Credit
Transcription, key, reading and translation: Andrew Aymeloglu, with OpenAI Codex (pull request #778). The letter and the glossed December letters were found by the project’s survey. The decipherment of 1431 is the work of a reader of the time.

01 The documents

The letter fills one page, c. 208r: 27 lines of Italian with the dateline and the signature of Bernardo d’Alamanno de’ Medici. The transcription marks 20 stretches of cipher among the clear words. The longest run goes from the end of line 2 to the end of line 4, and the shortest is two signs at the end of line 18. The verso has the address to Averardo and the number 196. A slip filed under the same number (c. 209r) adds a postscript in ordinary writing; it is not part of this edition.

No image is shown on this page. The archive allows its images on a free site without advertising, but asks to be notified of every publication and for the credit line “su concessione del Ministero della cultura”. No notice has been given, so the page is text only: the archive’s pages are linked under Sources and two lines are set in type here. The labels are the transcription’s, one character for each shape in the manuscript, and braces enclose the cipher:

13  che questi {x8=L7y2 Hnyy3+8 7 x7CCB8H3++8} la roba di {Qhnxy2 98hno2}
14  {Bh8H2+2}, che mi pare una gran {CohLn=y7}.

    che questi soldati mettano a sacchomanno la roba di questi poueri
    huomini, che mi pare una gran crudelta.

Three other letters of the same file matter here. In Bernardo’s letter of 8 December 1431 (doc. 140) a reader of the time wrote the plain words above many stretches of the cipher. His letter of 9 December 1431 (doc. 143) has two glossed lines and served as a check. A letter signed Antonio Mattaione de’ Ghatani at San Reghulo (doc. 41, of 13 November 1431 in the archive’s inventory) confirms a name that the cipher gives.

02 The cipher

Each sign stands for one letter, and five letters have two signs. This letter uses 25 signs in 339 places. Names of people and places are spelled out letter by letter, and nothing in it is a code word or a null. The word division in the transcription is the editor’s.

LetterSignsLetterSignsLetterSigns
a7, 3gG *p9
bghBqQ
cCiq, 2 *ro
dLl=sx
en, E *mHty
fD *n+u, v6, h
zf *o8, X

The five signs with an asterisk come from this letter; the other twenty come from the December decipherment. The labels are not the shapes themselves. In the transcription o is a plain oval, C an oval with a long stroke to the right, B a long stroke with an upright on it, X a tailed cross, x a simple cross, + the division sign and G a crossed descender. Capital and small labels are different signs. The signs shaped like a 9 are hard to tell apart by their tails.

03 How the key was recovered

The project’s survey of filza V on 15 November 2026 found the April letter, bare of any decipherment, and noted that Bernardo’s December letters, in the same system, carry one between the lines. Andrew Aymeloglu took it from there on 17 November 2026. OpenAI Codex transcribed and deciphered the images for him, compared the glosses and prepared the translation and the verification script.

The December page gave twenty values. The glossed word cassa has both signs for a, tutti repeats the sign for t, and ribandire and cassa keep r and c apart. Those twenty cover 294 of the 339 places in the April letter. The other 45 places hold five signs that the December table lacks, and their values came from the April words themselves: 2 is i, because the three spellings of Chianni end now in 2 and now in q; E is e in e levare and queste; G is g in Regholo, ogni, luogho and, doubled, in peggio; D is f in fortezza and forbici; f is z, doubled in fortezza.

So five values are not in the December table. Two of them, E and G, stand under the gloss of the letter of 9 December (verrà, Bughagno, conpagna; section 04), where the check left them without a value because it used the December table alone. That holds if the labels name the same shapes in both letters, which one reader transcribed with one set of labels. The other three, 2, D and f, rest on this letter alone in the key files. One of them, D, may have a gloss after all: on 24 November 2026 an AI agent of the project, looking at the archive’s image of the letter of 8 December, took the word written above the signs D7o=8 for farlo, which would make D an f there too. That is one look at a small image. It is not in the key table and the counts above do not use it.

Two readings needed an argument. The four signs that close the first stretch of line 18, onDE, give refe: the Grande dizionario della lingua italiana records a suo refe for “to his own cost”, and Bernardo writes a mio refe of the goods on his inventory. And the di before the cipher resumes on line 18 is taken as ordinary writing, like the di of lines 13 and 15; as cipher its two strokes would give fi, which makes no word.

04 The checks

A third letter. The twenty December values alone were applied to the two glossed lines of the letter of 9 December 1431. They give u?rra sec? and mandarci bu?ha?no con la sua conp?na, where the gloss has verrà seco and mandarci Bughagno con la sua conpagna. The question marks in u?rra, bu?ha?no and conp?na stand for the signs E and G, which the December table lacks and the gloss gives as e and g. With u and v taken as one letter that is six letter edits against 41 letters of gloss; none of 1,000 shuffled keys came closer than 23. The contributor states the limits himself: the reader had seen this letter and parts of its gloss when choosing it, the same reader transcribed and scored it, and no threshold was set in advance. It shows that the letters agree with each other. It is not a blind test.

Key replay. The project applied the two key tables to the transcribed signs and compared the result with the edition, word by word. Of the 58 cipher words, 56 come out exactly as the edition has them (96.6%). The other two are the words with a letter supplied in brackets. No difference is unmarked, and all 339 signs carry the value the tables give.

Statistical validation. The project’s test scores the decoded letters against a model of Italian of 1490 to 1620, which is later than the letter. The reading scores −2.268 per letter, random keys −4.803 on average, and the best key fitted to the shuffled signs −3.025. Verdict: pass.

The image. On 24 November 2026 an AI agent of the project compared the 20 stretches of cipher with the archive’s image of the page, 1,272 pixels wide and enlarged three times. It found no sign that differs. On an image of that size two similar shapes could be confused, and no person has made the comparison. The review of 18 November could not reach the archive’s server.

The names. Antonio signs his own letter in the same file Antonio Mattaione de’ Ghatani and dates it at San Reghulo, and other correspondents write from Parlascio and Castelnuovo. “Antonio’s place” in the April letter therefore probably means San Regolo; that last step is an inference.

The reading as sentences. An AI agent reviewing the pull request for the maintainers graded the reading A, coherent with scattered holes, on 18 November 2026, after decoding the 20 stretches with a decoder of its own. A second Codex reader had checked a sample of the handwriting for the contributor. These are models’ checks. No person has checked the transcription or the reading.

05 The reading

The cipher carries the parts of the letter that name places and intentions. Bold marks what is in cipher, in the letter’s own spelling as the key gives it; a bracket inside a bold word is a letter the edition supplies. The clear words around it are the contributor’s transcription.

LinesText
2–5ch’io debba isfasciare e levare via ogni fortezza a tutte queste chastella, cioè Parlascio, Chastello Nuovo, Santa Luce, Santo Regholo e Lore[n]zano. E ch’io proceggha e [?tento] tenere le mani adosso a Chianni.
8–11Del fare tenere le mani adosso a Chianni non vi veggho … rimane in luogho che per niuna via si può poi socchorere, ché, come sapete, tra il boscho e quivi è in mezzo Laiaticho, Orciaticho e Pietrachassa. E non rimanendo di qua nulla, mi pare si lasci nelle forbici.
13–14che questi soldati mettano a sacchomanno la roba di questi poveri huomini, che mi pare una gran crudeltà.
18non vorrei però perdendosi andasono a mio refe.
18–20Se vi paressi di rachomandare o questo luogho o quello d’Antonio Mattaoni a X, fatelo. E lasciando Chianni, a me pare non sarebbe il peggio a lasci[a]re uno di questi.

Bernardo has had a letter from the Ten that morning and tells Averardo what it commands:

I am to dismantle and remove every fortification from all these castles, namely Parlascio, Castelnuovo, Santa Luce, San Regolo and Lore[n]zano. And I am to go ahead and [?try] to get my hands on Chianni.

He does not see how Chianni could be held, because afterwards it could be relieved by no road: Lajatico, Orciatico and Pietracassa lie between the wood and the place, and with nothing kept on his side it would be left in the pincers (nelle forbici). He will do as the Ten see fit. Then comes the question:

I should also like to know whether they intend these soldiers to plunder the property of these poor people. It seems to me a great cruelty.

Mettere a saccomanno is to plunder. He goes on, in clear, to goods of the commune that he holds on inventory; the cipher returns for his fear of bearing the loss if they went missing. He asks Averardo to recommend this place or Antonio’s to the Ten, and says that if Chianni is given up, to leave one of these would not be the worst course. The whole page in Italian and in English is under Full texts.

06 What remains open

07 Earlier work and the date

No printed text or decipherment of this letter was found. The catalogue check of 15 November 2026 searched DECODE (no record from the Mediceo avanti il Principato at all), Tomokiyo’s and Lasry’s lists and the archive’s inventory, and the contributor searched by sender, date, place and wording on 17 November. The page leaves the question of priority open to further evidence.

A second look on 24 November 2026 went to a book that prints many letters of this correspondence. F. C. Pellegrini, Sulla repubblica fiorentina a tempo di Cosimo il Vecchio (Pisa, 1889), has an appendix of 125 documents, many of them letters to and from Averardo of 1431 and 1432, some with cipher. None is of April 1432. Pellegrini knew these letters all the same. He prints Averardo’s letter of 11 October 1431, which lists ten castles taken in the Pisan hills, the five of this letter among them, and says that “Bernardo” was left there as commissioner. In a letter of 2 November 1431 Averardo writes that the castles are useful for now and that after the war they will all have to be dismantled. A note there mentions Bernardo’s many letters from Lorenzano and, as far as the scanned text can be made out, the revolt of Chianni; it takes him for Bernardo di Antonio de’ Medici, where this letter is signed Bernardo d’Alamanno. The full texts of Guasti’s Commissioni di Rinaldo degli Albizzi (vol. 3), Fabroni’s life of Cosimo and Ross’s Lives of the early Medici have no match for the letter. D. Kent’s The Rise of the Medici (1978) was not seen. (Pellegrini’s book was searched in the Internet Archive’s scanned text by an AI agent; the pages were not read through by a person.)

By the date of the document this is the earliest letter of the Mediceo avanti il Principato in the project’s table of results, as of 24 November 2026. It is not the oldest key recovered in the project: the table has earlier ones, among them the verses of LJS 51 (text of about 1330 to 1370), Siena (1413), Heidelberg (1426) and Mantua (1428 to 1430). Among keys recovered from adjacent plaintext it is the third by date, after LJS 51 and the Forlì letter of 6 November 1428.

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.

map-v-196-208r (Archivio di Stato di Firenze, Mediceo avanti il Principato, filza V, doc. 196, c. 208r, 17 April 1432)

Bernardo reports the order to dismantle five castles, questions whether Chianni can be relieved, and asks if the Ten intend the soldiers to plunder the inhabitants.

Transcription

transcription.tsv

line	text (braces enclose cipher)
1	Egregie pater et domine mi. Questa mattina ò una da’ nostri signori X, de la quale [?credo] siate infor-
2	mato, nondimeno ve ne vo’ avisare quanto da loro m’è suto comandato, ch’è ch’io {Lngg3 2xD7}
3	{xCq3on E =Eh3on h27 8G+q DXoynff7 3 y6yyn QhExyn CB3xyn==7 C28n}
4	{97o=3xC2X CB7xyn==8 +h86X x3+y7 =hCn x3+y8 onGB8=X E =8onf3+8}
5	e ch’io proceggha e [?tento] ⟦di fare⟧ tenere le mani adosso {7 CB23++2}. E a quello mi
6	bisogna e torno al fatto ch’io ne richeggha el Pepe, perché è quest’ora gl’ò scritto si metta
7	a punto colle cose a ciò necessarie, e chome da lui sarò fornito metteremo tutte esecu-
8	zione. Del fare tenere le mani adosso a {CB23++q} non vi veggho in che modo esere bene
9	dovessi esser sicuro, perché rimane in luogho che per niuna via si può poi {x8CCBXonoE},
10	ché, come sapete, tra il boscho e quivi è in mezzo {=723yqCB8 XoC23yqCB8} e {92nyo3}
11	{CB3xx7}. E non rimanendo di qua {+h==7 H2 97on} si lasci nelle {D8og2Cq}. Pure
12	seghuirassene quanto a lloro parrà. Ancora vorrei essere avisato s’è loro intenzione
13	che questi {x8=L7y2 Hnyy3+8 7 x7CCB8H3++8} la roba di {Qhnxy2 98hno2}
14	{Bh8H2+2}, che mi pare una gran {CohLn=y7}. Pure seghuirassene lor parere. E perché,
15	come sapete, i’ ò qui della roba del comune di quella che di pocho utile e quasi [?isco-
16	rio], io n’ò scritto a Giovanni [?Cirioni], s’ingegni, se [?scotta] a vendere, s’ingegni di mandar-
17	mi, e sono in 25 muli. Non so se le farà né le manderà. Io l’ò per inventario, non vor-
18	rei però {9noLn+L8x2 7+L3x8+X 7 H28 onDE}. Altro non è da dire. Se vi paressi di {o7}
19	{CB8H3+L3on 8 Qhnxy8 =68GBX 8 Qhn==8 L7+y8+2X H3yy38+2} a X, fatelo. E la-
20	sciando {CB23++2}, a me pare non sarebbe {2= 9nGG28 7 =7xC2oE} uno di questi in modo che
21	di tutti si pigliassi partito. Né altro, se non che quanto più posso mi vi raccomando e non ò
22	altra speranza se non in Dio e in voi. Se vi acchadessi a favellare a Giovanni del Vinaio, ri-
23	cordategli che faccia quanto gli scrissi intorno a’ fatti miei, e se non vi credessi [?ma-
24	dasse], mostrat[e]gli quanto intorno a ciò abbia a fare. Che Cristo vi ghuardi. Di Lorenzana,
25	a dì 17 d’aprile 1432. El vostro
26	Bernardo d’Alamanno de’
27	Medici.
Decryption

literal.tsv

2	debba isfa
3	sciare e leuare uia ogni fortezza a tutte queste chastella cioe
4	parlascio chastello nuouo santa luce santo regholo e lorezano
5	a chianni
8	chianni
9	socchorere
10	laiaticho orciaticho pietra
11a	chassa
11b	nulla mi pare
11c	forbici
13a	soldati mettano a sacchomanno
13b	questi poueri
14a	huomini
14b	crudelta
18	perdendosi andasono a mio refe
18b	ra
19	chomandare o questo luogho o quello dantonio mattaoni
20a	chianni
20b	il peggio a lascire
Reading

reading-it.md

# Bernardo ad Averardo, c. 208r

<!-- Conventions (added at the write-up, 24 Nov 2026): the running text of the whole recto, clear words and cipher together. Punctuation, accents, word division and u/v are editorial, and common spellings are regularised (soccorrere for the cipher's socchorere, Castello Nuovo for chastello nuouo, uomini for huomini). The cipher words in the letter's own spelling, as the key gives them, are in literal.tsv and april.tsv. Square brackets mark a letter supplied in a cipher word or a doubtful clear word; bracketed dots mark clear text that gives no sense. -->

## Reading

Egregie pater et domine mi. Questa mattina ho una da' nostri signori Dieci, della quale [?credo] siate informato. Nondimeno ve ne vo' avvisare quanto da loro m'è suto comandato, ch'è ch'io debba isfasciare e levare via ogni fortezza a tutte queste castella, cioè Parlascio, Castello Nuovo, Santa Luce, Santo Regolo e Lore[n]zano. E ch'io proceggha e [?tento] tenere le mani addosso a Chianni.

E a quello mi bisogna, e torno al fatto ch'io ne richeggha el Pepe, perché a quest'ora gli ho scritto si metta a punto colle cose a ciò necessarie, e come da lui sarò fornito metteremo tutte esecuzione. Del fare tenere le mani addosso a Chianni non vi veggo in che modo essere bene dovessi esser sicuro, perché rimane in luogo che per niuna via si può poi soccorrere. Ché, come sapete, tra il bosco e quivi è in mezzo Laiatico, Orciatico e Pietracassa. E non rimanendo di qua nulla, mi pare si lasci nelle forbici. Pure seguirassene quanto a loro parrà.

Ancora vorrei essere avvisato s'è loro intenzione che questi soldati mettano a saccomanno la roba di questi poveri uomini, che mi pare una gran crudeltà. Pure seguirassene lor parere.

E perché, come sapete, io ho qui della roba del comune, di quella che di poco utile è e quasi [?iscorio], io n'ho scritto a Giovanni [?Cirioni], s'ingegni, se [...] a vendere, s'ingegni di mandarmi, e sono in venticinque muli. Non so se le farà né le manderà. Io l'ho per inventario, non vorrei però, perdendosi, andassono a mio refe. Altro non è da dire.

Se vi paressi di raccomandare o questo luogo o quello d'Antonio Mattaoni ai Dieci, fatelo. E lasciando Chianni, a me pare non sarebbe il peggio a lasci[a]re uno di questi, in modo che di tutti si pigliassi partito.

Né altro, se non che quanto più posso mi vi raccomando e non ho altra speranza se non in Dio e in voi. Se vi accadessi a favellare a Giovanni del Vinaio, ricordategli che faccia quanto gli scrissi intorno ai fatti miei, e se non vi credessi [...] mostrat[e]gli quanto intorno a ciò abbia a fare. Che Cristo vi guardi.

Di Lorenzana, a dì diciassette d'aprile millequattrocentotrentadue. El vostro Bernardo d'Alamanno de' Medici.
Translation

translation-en.md

# Bernardo to Averardo, c. 208r

My distinguished father and lord. This morning I received a letter from our lords the Ten, of which I [?believe] you have been informed. Nevertheless I want to tell you what they have commanded me to do. I am to dismantle and remove every fortification from all these castles, namely Parlascio, Castelnuovo, Santa Luce, San Regolo and Lore[n]zano. And I am to go ahead and [?try] to get my hands on Chianni.

For what I need for that, I come back to asking Pepe for it. By now I have written asking him to get the necessary things ready. Once he has supplied me, we will put everything into effect. As for getting our hands on Chianni, I cannot see how I could be sure it would go well, because it stands in a place where afterwards it could receive relief by no route. As you know, Lajatico, Orciatico and Pietracassa lie between the wood and that place. With nothing left on this side, it seems to me that Chianni would be left in the pincers. Still, we shall do as they see fit.

I should also like to know whether they intend these soldiers to plunder the property of these poor people. It seems to me a great cruelty. Still, we shall follow their wishes.

As you know, I have some property of the commune here, of the kind that is of little use and almost [?scrap]. I have written to Giovanni [?Cirioni] to do what he can and, if [...] to sell it, to try to send it to me. There are some twenty-five mules. I do not know whether he will do it or send the things. I have them on my inventory, and I would not want to have to bear the loss if they went missing. There is nothing else to say.

If you think fit to recommend either this place or Antonio Mattaoni's to the Ten, do so. If Chianni is to be given up, it seems to me that to [leave] one of these would not be the worst course, so that a decision could be made about them all.

Nothing more, except that I commend myself to you as earnestly as I can. My only hope is in God and in you. If you happen to speak to Giovanni del Vinaio, remind him to do what I wrote him about my affairs, and if he should not believe you [...] [show] him what he needs to do about it. May Christ keep you.

From Lorenzana, the seventeenth of April 1432. Yours, Bernardo d'Alamanno de' Medici.

Key: december-key.tsv, april-key.tsv

08 Sources

Notes, transcription, the two key tables, the literal decryption, the reading, the translation and the checks: targets/lorenzana1432/.

Cite this page

Andrew Aymeloglu and Daniel Bourdeau, “Bernardo d’Alamanno de’ Medici to Averardo de’ Medici, Lorenzana, 17 April 1432”, Cyphersolver, posted 24 November 2026, repository commit 17bf7e8764, https://cyphersolver.com/lorenzana1432.html.