RECIPROCAL POLYALPHABETIC • CODEBUSTERS

Porta Cipher

Use a repeating keyword and the 13 reciprocal Porta alphabets to encrypt or decrypt with the same substitution rule.

Family Polyalphabetic reciprocal substitution
Key / parameter Repeating keyword
Text structure Key advances on letters
01 • OVERVIEW

What is the Porta Cipher?

The Porta cipher is polyalphabetic: the substitution changes according to the current key letter. Key letters are paired—A/B use one alphabet, C/D the next, and so on through Y/Z.

Porta is reciprocal. With a fixed key alignment, the same tableau lookup operation can be used in both directions.

Competition note

The cipher mechanics on this page are self-contained. Science Olympiad event formats, allowed variants, and tournament constraints can change by season; the current official Rules Manual and official clarifications take precedence.

Starting from zero?

No outside reference is assumed. Work through Foundations → Complete Reference → Encryption → Decryption in order, then use the competition and cryptanalysis sections.

02 • FOUNDATIONS

What you need to know

  • Repeat the keyword under the message letters.
  • Convert each key letter to one of 13 pairs: AB, CD, EF, …, YZ.
  • Use the corresponding reciprocal alphabet row for each position.

Beginner glossary

Term Meaning
Keyword The repeating key written under the plaintext/ciphertext letters.
Key pair Porta groups key letters into AB, CD, EF, …, YZ; both letters in a pair select the same row.
Tableau The 13 substitution rows used by Porta.
Reciprocal The same table operation reverses itself, so encryption and decryption use the same row lookup.
03 • COMPLETE REFERENCE

Keep this beside you while solving

Key-pair substitution rows

Key pair Substitution under A–Z
AB NOPQRSTUVWXYZABCDEFGHIJKLM
CD OPQRSTUVWXYZNMABCDEFGHIJKL
EF PQRSTUVWXYZNOLMABCDEFGHIJK
GH QRSTUVWXYZNOPKLMABCDEFGHIJ
IJ RSTUVWXYZNOPQJKLMABCDEFGHI
KL STUVWXYZNOPQRIJKLMABCDEFGH
MN TUVWXYZNOPQRSHIJKLMABCDEFG
OP UVWXYZNOPQRSTGHIJKLMABCDEF
QR VWXYZNOPQRSTUFGHIJKLMABCDE
ST WXYZNOPQRSTUVEFGHIJKLMABCD
UV XYZNOPQRSTUVWDEFGHIJKLMABC
WX YZNOPQRSTUVWXCDEFGHIJKLMAB
YZ ZNOPQRSTUVWXYBCDEFGHIJKLMA

Each row shows the substitution output corresponding to plaintext A–Z for that key pair.

Key-pair index

Row Key letters Row Key letters
0 A/B 7 O/P
1 C/D 8 Q/R
2 E/F 9 S/T
3 G/H 10 U/V
4 I/J 11 W/X
5 K/L 12 Y/Z
6 M/N
Reciprocal check: if a particular key row maps plaintext P to ciphertext C, the same row maps C back to P.
Reference rule: if a fixed table, formula, alphabet, or convention is needed to solve this cipher, it should be visible in this section or generated explicitly by the visualizer below.
04 • ENCRYPTION

How encryption works

1

Repeat the key

Write the keyword repeatedly under alphabetic plaintext positions.

2

Find the key pair

A or B uses the AB row; C or D uses CD; etc.

3

Look up the plaintext letter

Use its A–Z position in that row.

4

Write the output

Continue with the next key letter.

05 • DECRYPTION

How decryption works

1

Align the repeating key

Key alignment must match the ciphertext letters.

2

Use the same key-pair row

Porta substitutions are reciprocal.

3

Look up the ciphertext letter

Apply the same row relationship to recover plaintext.

4

Check alignment

One skipped key position will corrupt every later letter.

06 • COMPETITION WORKFLOW

How to approach it in Codebusters practice

  • When the key is given, write its repeated alignment before performing any substitutions.
  • In crib-based cryptanalysis, test where the crib can align and which key-pair rows would be required.
  • Remember that A/B act identically as a pair, C/D as a pair, etc.

What the problem gives you vs. what you produce

Part What to expect
You may be given Ciphertext and a keyword, plaintext to encrypt, or a crib for cryptanalysis.
You must find The opposite text by repeating the key and using the row selected by each key letter.
Fastest first move Write/repeat the key directly under the letters and convert each key letter to its AB/CD/… pair row.
Season note: use this page to learn the cipher mechanics and solving workflow. Exact Science Olympiad event constraints can change by season, so follow the current official rules/clarifications for tournament-specific limits.
07 • CRYPTANALYSIS

How to attack an unknown or partially known key

  • A crib provides equations between plaintext/ciphertext letters and possible Porta key pairs.
  • Because each pair of key letters shares a row, recovered key information may initially identify a pair rather than an exact letter.
  • Repeated-key periodicity can create patterns when the key length is short.
08 • WORKED PROBLEM

Follow one example from start to finish

Plaintext
SECRET
Keyword
CODE
Repeated key
CODECO
Key pairs
CD OP CD EF CD OP
Ciphertext
EYQCSM
BEGINNER SELF-CHECK

Before moving on, make sure you can answer these without another site:

  • Can you identify the same tableau row for A and B?
  • Can you explain why Porta encryption and decryption use the same operation?
  • Can you align a repeating key while ignoring spaces?
09 • ERROR CHECK

Common mistakes

!

Using 26 distinct key rows instead of 13 paired rows.

!

Advancing the key on spaces when the chosen convention advances only on letters.

!

Using Vigenère arithmetic instead of the Porta tableau.

!

Forgetting reciprocity.

10 • SPEED

Competition speed strategies

1

Write the 13 key pairs in order on your reference sheet.

2

Pre-write the repeated key under the message.

3

For cryptanalysis, test crib alignments before attempting to recover a whole keyword.

11 • QUICK REFERENCE

What to remember under time pressure

Key pairs AB, CD, EF, …, YZ
Rows 13
Property Reciprocal
Key Repeats across letters
How to use this section: during timed practice, come here first for the minimum rules. If a step is unclear, jump back to Complete Reference or the worked example instead of guessing.
12 • INTERACTIVE LAB

See every transformation

Use the lab to change inputs and keys, keep the relevant reference material visible, inspect each intermediate transformation, and then read the “How to reverse it” panel so encryption and decryption connect.