Tool to decrypt / encrypt with Porta cipher. Invented by an Italian physicist Della Porta, this poly alphabetical cipher changes of 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!
Tool to decrypt / encrypt with Porta cipher. Invented by an Italian physicist Della Porta, this poly alphabetical cipher changes of alphabet every letter.
The encryption by Porta uses a key and a series of 13 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.
Example: The alphabets used by default are:
AB | ABCDEFGHIJKLM NOPQRSTUVWXYZ | NOPQRSTUVWXYZABCDEFGHIJKLM |
CD | ABCDEFGHIJKLM ZNOPQRSTUVWXY | ZNOPQRSTUVWXYBCDEFGHIJKLMA |
EF | ABCDEFGHIJKLM YZNOPQRSTUVWX | YZNOPQRSTUVWXCDEFGHIJKLMAB |
GH | ABCDEFGHIJKLM XYZNOPQRSTUVW | XYZNOPQRSTUVWDEFGHIJKLMABC |
IJ | ABCDEFGHIJKLM WXYZNOPQRSTUV | WXYZNOPQRSTUVEFGHIJKLMABCD |
KL | ABCDEFGHIJKLM VWXYZNOPQRSTU | VWXYZNOPQRSTUFGHIJKLMABCDE |
MN | ABCDEFGHIJKLM UVWXYZNOPQRST | UVWXYZNOPQRSTGHIJKLMABCDEF |
OP | ABCDEFGHIJKLM TUVWXYZNOPQRS | TUVWXYZNOPQRSHIJKLMABCDEFG |
QR | ABCDEFGHIJKLM STUVWXYZNOPQR | STUVWXYZNOPQRIJKLMABCDEFGH |
ST | ABCDEFGHIJKLM RSTUVWXYZNOPQ | RSTUVWXYZNOPQJKLMABCDEFGHI |
UV | ABCDEFGHIJKLM QRSTUVWXYZNOP | QRSTUVWXYZNOPKLMABCDEFGHIJ |
WX | ABCDEFGHIJKLM PQRSTUVWXYZNO | PQRSTUVWXYZNOLMABCDEFGHIJK |
YZ | ABCDEFGHIJKLM OPQRSTUVWXYZN | OPQRSTUVWXYZNMABCDEFGHIJKL |
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 TUVWXYZNOPQRSHIJKLMABCDEFG, which allows to substitute the letter D with P
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.
Several sets of reversible alphabets are mentioned, including:
| or |
|
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, who 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 online 'Porta Cipher' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (PHP, Java, C#, Python, Javascript, Matlab, etc.) no data, script or API access will be for free, same for Porta Cipher download for offline use on PC, tablet, iPhone or Android !
Please, check our community Discord for help requests!