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.
- Write the keyword under the message, repeating it as needed. Spaces and punctuation are kept and don't use up key letters.
- For each letter, find the row of the tableau for its key letter (the tableau above lights up the rows your keyword uses).
- 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
- Vigenère cipher: 26 alphabets instead of 13
- Beaufort cipher: another reciprocal cipher
- Gronsfeld cipher: a Vigenère with only 10 alphabets