Ciphered Europe

Story · Revolt of the Comuneros, 16th century

Castile, 1520: what the governors wrote to Charles V in cipher

In May 1520 Charles V leaves Spain to be crowned in Germany and leaves Castile to Cardinal Adrian of Utrecht. The towns rise; their Junta takes hold of Queen Joanna at Tordesillas. Two items at Simancas show what the king’s men would not write in clear: a paragraph by Adrian, in September, which the nineteenth-century editor could not translate, and a letter wholly in cipher by Lope Hurtado de Mendoza, five days after Tordesillas was retaken, in December.

« la gente muy mal mandada, como es de muchos, que es el mayor temor que tenemos »

“The troops very badly commanded, as any force with many chiefs: that is the greatest of our fears”: Lope Hurtado de Mendoza to Charles V, from the royal army, Tordesillas, 10 December 1520 (cipher letter).

What is new, what was known

Known. At the end of the nineteenth century Antonio Danvila printed most of the governors’ correspondence, with the decipherments made at the time.[1] For Adrian’s letter of 9 September 1520 he notes: “Sigue un párrafo cifrado que no ha podido traducirse”, a cipher paragraph follows which could not be translated. For 10 December he prints Lope Hurtado’s letter in clear, not his cipher letter of the same day. In April 2026 Mikel García Larragan published the cryptanalysis of another cipher letter by Adrian, of 28 July 1520.[5]

What we add, to our knowledge. (1) The reading of Lope Hurtado’s cipher letter (AGS, PTR,LEG,2,36,8), flagged in Daniel Bourdeau’s catalogue (no. 626): read, 97.7% of some 920 words, with a key rebuilt from the letter itself.[2] (2) The reading of Adrian’s paragraph (PTR,LEG,2,1,19), with his code rebuilt from his other letters: read in part, 43 words out of 46 (93.5%), below the 95% bar.[3]

1520: a kingdom without its king

To pay for his election to the Empire, Charles obtained an extraordinary tax from the Cortes of La Coruña; he sails on 20 May 1520 and entrusts the regency to his former tutor, Adrian of Utrecht, Cardinal of Tortosa. Toledo and Segovia rise; the rebel towns form a Junta at Ávila. On 21 August, trying to seize the royal artillery, the regent’s troops burn Medina del Campo; on 29 August Juan de Padilla enters Tordesillas, where Queen Joanna, Charles’s mother, lives, and whom the Junta wants to make reign. On the night of 1 September, at Dueñas, the vassals of the Count of Buendía rise against their lord: the revolt of the towns also becomes a revolt against the lords.[4]

9 September: the Junta against the Grandees

Eight days later Adrian writes from Valladolid. The letter, in clear, tells how he tried in vain to draw the Junta into his town, then announces: “el fin que sobresto tienen sabrá V. Al. por la cifra que va dentro desta”, the aim they pursue Your Highness will learn from the cipher enclosed in this letter. The contemporary decipherment of that enclosed sheet is kept separately (PTR,LEG,2,1,107): according to the Marquis of Villena’s secretary, the Junta means to take the title of king from Charles during his mother’s lifetime and no longer obey his orders. Then comes, in the letter itself, the cipher paragraph:

“… all the more as {perhaps} this will give ‹…› to these [people], who rise not {only} {against} [Your] Majesty, {but} also against all the Grandees, from whom they {mean} {first} to {take} all the {alcabalas}, {then} all the {towns} {and} places which a {short} while ago {were} of the royal {Crown}.”

The regent does not merely describe a rebellion: he points the king to a common interest with the high nobility. In many lordships the alcabalas, the sales tax, went to the lord; towns and places alienated from the Crown made the Grandees’ fortunes. If the Junta means to take them back, the Grandees have everything to lose with it. That is the card the Crown plays: in September 1520 Charles appoints two Grandees, the Constable Íñigo de Velasco and the Admiral Fadrique Enríquez, as governors alongside Adrian.[4]

10 December: victory and its divisions

On 5 December 1520 the governors’ army retakes Tordesillas; the town is sacked, some of the Junta’s procurators are taken. On the 10th, Lope Hurtado de Mendoza, a gentleman of Charles’s household attached to the governors, writes two letters to the king. The first, in clear, tells of the victory; Danvila printed it. The second, wholly in cipher, tells the other side of the story.

The two items answer each other. In September Adrian wants to win the Grandees to the king by showing them what they would lose with the Junta; in December they have been won, but Lope Hurtado describes to the king a divided and self-interested coalition, to be held by graces. The war is decided four months later, at Villalar, on 23 April 1521.

Two ciphers

How we read them

  1. Lope Hurtado. The words “vuestra magestad”, repeated, broke the cipher. The key, built on the first sixteen lines of the recto and frozen (SHA-256), was tested on lines of the verso transcribed and frozen before any decoding: 0.827 of the words belong to the Spanish lexicon, against 0.519 at the 99th percentile and 0.596 at most for 200 control keys.
  2. Adrian. The key was rebuilt from his letters of 1520–1521 whose clear text is known, then tested, in a single measurement, on a held-out letter (5 December 1521, compared with the decipherment printed by Danvila): 0.882 of characters, against at best 0.176 for 200 controls. Three earlier keys had failed this test; we withdrew them. On 9 November 2026, following a lead from Daniel Bourdeau, a cipher sheet of 1521 whose clear text is printed gave three more words.
  3. Brice Dudout’s blind reviews: doubtful signs shown as shapes, with no reading visible (twelve for Lope Hurtado; thirty-three for Adrian, on three sheets).

What remains uncertain

References

  1. Printed source

    A. Danvila, Historia crítica y documentada de las Comunidades de Castilla, in Memorial histórico español XXXV–XL, Madrid, 1897–1900; vol. XXXVI, pp. 17–19 (Adrian’s letter of 9 September 1520) and pp. 688–690 (Lope Hurtado’s letter in clear of 10 December 1520); vol. XXXVIII (decipherments of 1521 used for Adrian’s key).

  2. Lope Hurtado

    Simancas, Archivo General, Patronato Real, PTR,LEG,2,36,8, f. 1r–1v, cipher letter of Lope Hurtado de Mendoza to Charles V, 10 December 1520. PARES ↗

  3. Adrian of Utrecht

    Simancas, Archivo General, Patronato Real, PTR,LEG,2,1,19, f. 1r, letter of the Cardinal of Tortosa to Charles V, Valladolid, 9 September 1520. PARES ↗

  4. Chronology

    “Guerra de las Comunidades de Castilla”, Wikipedia (es), accessed 14 November 2026. Wikipedia ↗

  5. Another letter by Adrian

    Mikel García Larragan, “Criptoanálisis a una carta cifrada del cardenal de Tortosa” (I–IV), El blog de García Larragan y Cía, 2–6 April 2026 (letter of 28 July 1520). Blog ↗

  6. Archivos Comuneros

    Record “Carta cifrada de Lope Hurtado de Mendoza al rey” (10-12-1520), without a transcription, accessed 14 November 2026. Archivos Comuneros ↗

  7. Framework and repository

    Daniel Bourdeau, cyphersolver repository: catalogue no. 626 (Lope Hurtado), the fol. 434 lead (Adrian, 7 November 2026), the 95% rule; targets lopehurtado1520 and adrian1520.

  8. Reading

    The records Lope Hurtado, 1520 and Cardinal of Tortosa, 1520 on the Documents page, with the texts, justifications, counts and credits.