What is the Porta Cipher?
The Porta cipher is a polyalphabetic substitution cipher invented by Italian scholar Giovanni Battista della Porta in 1563. Published in his treatise De Furtivis Literarum Notis, it uses 13 reciprocal substitution alphabets — half as many as the Vigenère cipher — while achieving comparable security through an elegant mathematical property: self-reciprocity.
Each of the 13 alphabets swaps letters between two halves (A–M and N–Z), so encryption and decryption are the exact same operation. If "A" encrypts to "N" under a given key letter, applying the same process to "N" returns "A." This made the cipher exceptionally practical for Renaissance diplomats and military commanders who needed a system that was both secure and hard to misuse in the field.
How to Encrypt with the Porta Cipher
- Choose a keyword — any memorable word or phrase (e.g., "NAPLES")
- Write the keyword repeatedly above the plaintext, one key letter per plaintext letter
- Look up each key letter pair — A/B → Table 0, C/D → Table 1, … Y/Z → Table 12
- Substitute each plaintext letter using the selected table
- To decrypt, repeat the exact same steps with the ciphertext — the reciprocal tables reverse the mapping automatically
Our tool performs all of this in real time as you type, with support for multiple historical table variants.
Porta Cipher Table — Complete 13-Alphabet Reference
The defining feature of this cipher is its compact table system. Key letters are paired so that two consecutive letters share the same substitution alphabet:
| Table | Key Letters | Mapping Principle |
|---|---|---|
| 0 | A, B | First-half ↔ second-half swap with offset 0 |
| 1 | C, D | Swap with offset 1 |
| 2 | E, F | Swap with offset 2 |
| 3 | G, H | Swap with offset 3 |
| 4 | I, J | Swap with offset 4 |
| 5 | K, L | Swap with offset 5 |
| 6 | M, N | Swap with offset 6 |
| 7 | O, P | Swap with offset 7 |
| 8 | Q, R | Swap with offset 8 |
| 9 | S, T | Swap with offset 9 |
| 10 | U, V | Swap with offset 10 |
| 11 | W, X | Swap with offset 11 |
| 12 | Y, Z | Swap with offset 12 |
For the full interactive table with all 26-letter mappings, see our Porta Cipher Table page.
Porta Cipher vs Vigenère Cipher
Both are polyalphabetic ciphers, but they differ in fundamental ways:
| Feature | Porta Cipher | Vigenère Cipher |
|---|---|---|
| Alphabets | 13 reciprocal tables | 26 shift tables |
| Key letter mapping | Paired (A/B share a table) | Individual (each letter = unique shift) |
| Reciprocal | Yes — same operation encrypts and decrypts | No — requires separate decrypt step |
| Output range | Ciphertext letter always in opposite half | Any letter possible |
| Invented | 1563 by della Porta | 1586 by Blaise de Vigenère |
| Security level | Moderate (smaller key space per position) | Moderate (larger alphabet set) |
Both are vulnerable to Kasiski examination and frequency analysis once the key length is determined.
Frequently Asked Questions
What is the Porta cipher?
It is a polyalphabetic substitution cipher created by Giovanni Battista della Porta in 1563. It uses 13 self-reciprocal alphabets selected by paired key letters, making encryption and decryption identical operations.
How do you decrypt a Porta cipher?
Use the exact same process as encryption. Because each substitution table is its own inverse, entering ciphertext with the original key produces plaintext automatically. Our decoder also supports automated cryptanalysis when the key is unknown.
Why does it use only 13 alphabets instead of 26?
The alphabet is split into two halves of 13 letters each (A–M and N–Z). Each table swaps between these halves reciprocally, so only 13 distinct mappings are needed. Key letters are paired into 13 groups accordingly.
Is the Porta cipher still secure?
No. Like all classical polyalphabetic ciphers, it falls to modern statistical attacks — Friedman testing, Kasiski examination, and brute force. With only 13 effective alphabets and short keyword reuse, a computer can break it in seconds. It remains valuable for education and historical study.
How is it different from the Beaufort cipher?
Both are self-reciprocal, but they achieve it differently. The Porta cipher uses 13 dedicated swap tables, while the Beaufort cipher uses a single reversed-alphabet formula. Porta was invented nearly 300 years earlier (1563 vs. 1850s).
Related Tools and Resources
- Porta Cipher Decoder — Decrypt with known key or automated cryptanalysis
- Porta Cipher Table — Interactive 13-alphabet reference with all variants
- Porta Cipher Examples — Step-by-step encryption and decryption walkthroughs
- Vigenère Cipher — The 26-alphabet polyalphabetic successor
- Trithemius Cipher — The progressive-key predecessor that influenced della Porta
- Beaufort Cipher — Another self-reciprocal polyalphabetic cipher
- Alberti Cipher — The first polyalphabetic cipher, by della Porta's predecessor
- Cipher Identifier — Detect unknown ciphertext types automatically