Free Tool

Porta Cipher Tool

Della Porta's 13 reciprocal alphabets

Ciphertext

How the Porta cipher works

Porta is a polyalphabetic cipher like Vigenère, but it uses only 13 alphabets, one for each pair of key letters: AB, CD, EF … YZ. Each alphabet swaps the first half of the alphabet (A–M) with the second half (N–Z), with the second half slid along by a different amount in each row.

  1. Write the keyword under the message, repeating it as needed. Spaces and punctuation are kept and don't use up key letters.
  2. For each letter, find the row of the tableau for its key letter (the tableau above lights up the rows your keyword uses).
  3. If the message letter is in A–M, read the letter under it in that row. If it is in N–Z, find it in the row and read the column heading above it.

Because each row only swaps pairs of letters, decrypting is the same as encrypting. The two buttons on this page give the same result.

Example

With the keyword FORTIFICATION, DEFEND THE EAST WALL OF THE CASTLE becomes SYNNJS CVR NRLA HUTU KU CVR YRLANY. The first letter D sits under key F, in the EF row, where D swaps with S.

How to break it

  • Spot it. No letter ever encrypts to itself, and letters always cross between the halves A–M and N–Z.
  • Find the key length with Kasiski examination or the index of coincidence, exactly as for Vigenère.
  • Solve each column. There are only 13 alphabets per column. Try each and keep the one whose letter counts look most like English.

History

The Italian scholar Giovan Battista della Porta published the cipher in 1563 in De Furtivis Literarum Notis, a book on secret writing. Being reciprocal made it practical: one table served for both writing and reading a message.

Related tools

Questions

Why are encryption and decryption the same in the Porta cipher?

Each of the 13 alphabets swaps letters in pairs: if A becomes N, then N becomes A. Running the cipher twice with the same key therefore gives back the original text, so one operation does both jobs.

Can a letter encrypt to itself in Porta?

Never. Every alphabet swaps a letter from the first half (A–M) with one from the second half (N–Z), so a letter always changes, and always to the other half. That is a useful clue when identifying a Porta ciphertext.

How do I break a Porta cipher?

Like Vigenère: find the key length with Kasiski examination or the index of coincidence, then solve each column. Each column has only 13 possible alphabets to try, and a keyword letter can only be pinned down to a pair such as A or B.