Welcome, codebusters! The Porta cipher is a polyalphabetic cipher, which means the same letter can be encrypted as different letters depending on where it appears in the message. Let's learn how it works!
The Porta cipher uses:
The coolest thing about Porta? Encryption and decryption use the exact same process! This is called being reciprocal — if you encode a message and then encode the result with the same key, you get the original back.
The key letter tells you which row to use. Each pair of letters shares a row (A&B share a row, C&D share a row, etc.).
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
─────────────────────────────────────────────────────
AB │ N O P Q R S T U V W X Y Z A B C D E F G H I J K L M
CD │ O P Q R S T U V W X Y Z N A B C D E F G H I J K L M
EF │ P Q R S T U V W X Y Z N O A B C D E F G H I J K L M
GH │ Q R S T U V W X Y Z N O P A B C D E F G H I J K L M
IJ │ R S T U V W X Y Z N O P Q A B C D E F G H I J K L M
KL │ S T U V W X Y Z N O P Q R A B C D E F G H I J K L M
MN │ T U V W X Y Z N O P Q R S A B C D E F G H I J K L M
OP │ U V W X Y Z N O P Q R S T A B C D E F G H I J K L M
QR │ V W X Y Z N O P Q R S T U A B C D E F G H I J K L M
ST │ W X Y Z N O P Q R S T U V A B C D E F G H I J K L M
UV │ X Y Z N O P Q R S T U V W A B C D E F G H I J K L M
WX │ Y Z N O P Q R S T U V W X A B C D E F G H I J K L M
YZ │ Z N O P Q R S T U V W X Y A B C D E F G H I J K L M
How to read the tableau:
Encrypt the message: SCIENCE IS FUN
Using the keyword: STAR
First, remove spaces from the plaintext and repeat the keyword underneath it:
Plaintext: S C I E N C E I S F U N
Key: S T A R S T A R S T A R
The key STAR repeats over and over until it covers every
letter.
Now, for each plaintext letter, we use the key letter to pick a row from the tableau, then look up the cipher letter.
Letter 1: S with key S
Letter 2: C with key T
Letter 3: I with key A
Letter 4: E with key R
Letter 5: N with key S
Letter 6: C with key T
Letter 7: E with key A
Letter 8: I with key R
Letter 9: S with key S
Letter 10: F with key T
Letter 11: U with key A
Letter 12: N with key R
Plaintext: S C I E N C E I S F U N
Key: S T A R S T A R S T A R
Ciphertext: F Z V Z A Z R D F C H U
Ciphertext: FZVZA ZRDFC HU
(We can group in sets of 5 for readability, or put spaces back:
FZV ZAZR DFCHU)
Here's the magic of Porta: decryption is the exact same process!
Given:
FZVZAZRDFCHUSTARCiphertext: F Z V Z A Z R D F C H U
Key: S T A R S T A R S T A R
Letter 1: F with key S
Letter 2: Z with key T
Letter 3: V with key A
(Continue for all 12 letters...)
Ciphertext: F Z V Z A Z R D F C H U
Key: S T A R S T A R S T A R
Plaintext: S C I E N C E I S F U N
Plaintext: SCIENCE IS FUN 🎉
Decrypt this message using the keyword SUN:
UVGGBQK
Ciphertext: U V G G B Q K
Key: S U N S U N S
Using the Porta tableau:
Plaintext: HIDDENX → HIDDEN (the X is padding)
Happy decoding! 🕵️♂️🔍