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. Except explicit open source licence (indicated Creative Commons / free), the "Porta Cipher" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "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.) and all data download, script, or API access for "Porta Cipher" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.
The copy-paste of the page "Porta Cipher" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Porta Cipher on dCode.fr [online website], retrieved on 2024-12-21,