Tool to decrypt / encrypt with Porta cipher. Invented by an Italian physicist Della Porta, this polyalphabetic cipher changes alphabet every letter.
Porta Cipher - dCode
Tag(s) : Poly-Alphabetic Cipher
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The original Porta encryption is a polyalphabetic encryption using a key and a series of 11 reversible alphabets.
Porta encryption uses a key and 11 reversible alphabets each associated with 2 letters of the alphabet: A and B for the first, C and D for the second, and so on.
As Porta is Italian, its alphabet has only 22 letters: ABCDEFGHILMNOPQRSTVXYZ (missing J, K, U and W)
To use the Latin alphabet, the principle has been intrapolated to 26 letters and 13 alphabets.
Example: The alphabets used by default are:
AB | NOPQRSTUVWXYZABCDEFGHIJKLM |
CD | ZNOPQRSTUVWXYABCDEFGHIJKLM |
EF | YZNOPQRSTUVWXABCDEFGHIJKLM |
GH | XYZNOPQRSTUVWABCDEFGHIJKLM |
IJ | WXYZNOPQRSTUVABCDEFGHIJKLM |
KL | VWXYZNOPQRSTUABCDEFGHIJKLM |
MN | UVWXYZNOPQRSTABCDEFGHIJKLM |
OP | TUVWXYZNOPQRSABCDEFGHIJKLM |
QR | STUVWXYZNOPQRABCDEFGHIJKLM |
ST | RSTUVWXYZNOPQABCDEFGHIJKLM |
UV | QRSTUVWXYZNOPABCDEFGHIJKLM |
WX | PQRSTUVWXYZNOABCDEFGHIJKLM |
YZ | OPQRSTUVWXYZNABCDEFGHIJKLM |
The Porta algorithm consists of taking the first letter of the key, finding the corresponding alphabet, and making a substitution of the first letter of the plain text with this alphabet.
Example: Encrypt the message DCODE with the key PORTA. The first letter of the key P corresponds to the alphabet ABCDEFGHIJKLMTUVWXYZNOPQRS, which allows to substitute the letter D with W
The encryption is continued by taking the second letter of the key and the corresponding alphabet and substituting the second letter of the plain text, with this second alphabet and so on.
Example: DCODE is then encrypted WVJUR.
Decryption is the same as encryption if alphabets are reversible.
Since the original alphabet was Italian, it only had 22 letters, modernizing Porta to the current 26 letter alphabet is an interpolation.
Several sets of reversible alphabets are mentioned, including:
— (1) original version extrapolated (rotation of the second half of the alphabet to the right) :
NOPQRSTUVWXYZABCDEFGHIJKLM |
ZNOPQRSTUVWXYABCDEFGHIJKLM |
YZNOPQRSTUVWXABCDEFGHIJKLM |
XYZNOPQRSTUVWABCDEFGHIJKLM |
WXYZNOPQRSTUVABCDEFGHIJKLM |
VWXYZNOPQRSTUABCDEFGHIJKLM |
UVWXYZNOPQRSTABCDEFGHIJKLM |
TUVWXYZNOPQRSABCDEFGHIJKLM |
STUVWXYZNOPQRABCDEFGHIJKLM |
RSTUVWXYZNOPQABCDEFGHIJKLM |
QRSTUVWXYZNOPABCDEFGHIJKLM |
PQRSTUVWXYZNOABCDEFGHIJKLM |
OPQRSTUVWXYZNABCDEFGHIJKLM |
— (2) variant suggested by ACA (American Cryptogram Association) (rotation of the second half of the alphabet to the left):
NOPQRSTUVWXYZABCDEFGHIJKLM |
OPQRSTUVWXYZNABCDEFGHIJKLM |
PQRSTUVWXYZNOABCDEFGHIJKLM |
QRSTUVWXYZNOPABCDEFGHIJKLM |
RSTUVWXYZNOPQABCDEFGHIJKLM |
STUVWXYZNOPQRABCDEFGHIJKLM |
TUVWXYZNOPQRSABCDEFGHIJKLM |
UVWXYZNOPQRSTABCDEFGHIJKLM |
VWXYZNOPQRSTUABCDEFGHIJKLM |
WXYZNOPQRSTUVABCDEFGHIJKLM |
XYZNOPQRSTUVWABCDEFGHIJKLM |
YZNOPQRSTUVWXABCDEFGHIJKLM |
ZNOPQRSTUVWXYABCDEFGHIJKLM |
— (3) variant (double rotation of the alphabet) :
NOPQRSTUVWXYZABCDEFGHIJKLM |
OPQRSTUVWXYZNMABCDEFGHIJKL |
PQRSTUVWXYZNOLMABCDEFGHIJK |
QRSTUVWXYZNOPKLMABCDEFGHIJ |
RSTUVWXYZNOPQJKLMABCDEFGHI |
STUVWXYZNOPQRIJKLMABCDEFGH |
TUVWXYZNOPQRSHIJKLMABCDEFG |
UVWXYZNOPQRSTGHIJKLMABCDEF |
VWXYZNOPQRSTUFGHIJKLMABCDE |
WXYZNOPQRSTUVEFGHIJKLMABCD |
XYZNOPQRSTUVWDEFGHIJKLMABC |
YZNOPQRSTUVWXCDEFGHIJKLMAB |
ZNOPQRSTUVWXYBCDEFGHIJKLMA |
— (4) variant (double rotation of the alphabet)
NOPQRSTUVWXYZABCDEFGHIJKLM |
ZNOPQRSTUVWXYBCDEFGHIJKLMA |
YZNOPQRSTUVWXCDEFGHIJKLMAB |
XYZNOPQRSTUVWDEFGHIJKLMABC |
WXYZNOPQRSTUVEFGHIJKLMABCD |
VWXYZNOPQRSTUFGHIJKLMABCDE |
UVWXYZNOPQRSTGHIJKLMABCDEF |
TUVWXYZNOPQRSHIJKLMABCDEFG |
STUVWXYZNOPQRIJKLMABCDEFGH |
RSTUVWXYZNOPQJKLMABCDEFGHI |
QRSTUVWXYZNOPKLMABCDEFGHIJ |
PQRSTUVWXYZNOLMABCDEFGHIJK |
OPQRSTUVWXYZNMABCDEFGHIJKL |
To increase the security in the transmission of the encryption, it is recommended to use other alphabets.
The message has a low index of coincidence due to the use of several alphabets.
A Friedman test retrieves the key length probabilistically.
This is not a variant but Porta is similar to the Bellaso Cipher, another Italian, which uses several alphabets.
In the 16th century by Giambattista della Porta, a physicist who dedicated a book on messages encryption.
dCode retains ownership of the "Porta Cipher" source code. Any algorithm for the "Porta Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Porta Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Porta Cipher" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Porta Cipher" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Porta Cipher on dCode.fr [online website], retrieved on 2025-04-15,