COLUMN TRANSPOSITION • CODEBUSTERS

Complete Columnar Cipher

Reconstruct a complete rectangle, understand the column-number key, and use a crib to attack unknown ordering.

Family Transposition
Key / parameter Permutation of column numbers
Text structure Plaintext letters are rearranged into full columns
01 • OVERVIEW

What is the Complete Columnar Cipher?

A complete columnar transposition writes plaintext across rows of a rectangle and reads the columns in a key-defined order. “Complete” means the rectangle is filled so every column has the same number of letters, often by padding.

The letters themselves never change, which distinguishes this from substitution ciphers.

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

  • A key such as 4-2-3-1 labels the columns.
  • Encryption reads the column labeled 1 first, then 2, then 3, etc.
  • If padding is used, it completes the final row.
  • For cryptanalysis, the number of columns and a crib can constrain the column order.

Beginner glossary

Term Meaning
Column key A permutation such as 4-2-3-1 labeling the physical columns.
Complete rectangle A grid where every column has the same number of letters, using padding if necessary.
Padding Extra filler letters added so the rectangle is full.
Read order The order of column labels 1, 2, 3, …, not necessarily the left-to-right physical order.
Crib Known plaintext that can constrain column adjacency/order in cryptanalysis.
03 • COMPLETE REFERENCE

Keep this beside you while solving

Key labels: 4 2 3 1 Plaintext: S E C R E T M E S S A G E X X X Read column label 1 first (rightmost), then 2, 3, 4.

How to interpret a key

physical columns: 1 2 3 4 key labels: 4 2 3 1 read ciphertext: column under label 1 first → physical column 4 then label 2 → physical column 2 then label 3 → physical column 3 then label 4 → physical column 1
Complete means equal lengths. If the rectangle is complete, decryption splits the ciphertext into equal-sized column chunks.
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

Choose the column count/key

Example: four columns labeled 4-2-3-1.

2

Write plaintext by rows

Fill left-to-right.

3

Pad to a complete rectangle

Add agreed filler letters if needed.

4

Read in key order

Collect the entire column labeled 1, then 2, etc.

05 • DECRYPTION

How decryption works

1

Find rectangle dimensions

Cipher length ÷ number of columns gives the number of rows for a complete rectangle.

2

Split ciphertext into column chunks

Each chunk has the same number of letters.

3

Place chunks by key label

First chunk goes under label 1, second under label 2, etc.

4

Read rows left-to-right

Remove obvious padding at the end when appropriate.

06 • COMPETITION WORKFLOW

How to approach it in Codebusters practice

  • If the number of columns is constrained, test only allowed column counts.
  • A crib can reveal which column pieces must sit next to one another in reconstructed rows.
  • Do not use irregular-column logic for a complete columnar problem.

What the problem gives you vs. what you produce

Part What to expect
You may be given Ciphertext, a column count/key, or a cryptanalysis problem with a crib and limited columns.
You must find The plaintext by placing whole column chunks into the correct physical columns.
Fastest first move Compute the number of rows and split the ciphertext into equal chunks immediately.
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

  • Because letters are unchanged, frequency statistics match the plaintext overall.
  • Crib fragments that span column boundaries are especially informative for ordering columns.
  • For a known column count, divide ciphertext into equal column segments before testing permutations.
08 • WORKED PROBLEM

Follow one example from start to finish

Key
4-2-3-1
Plaintext
SECRETMESSAGE
Padded grid text
SECRETMESSAGEXXX
Read order
label 1 → REGX; 2 → ETSX; 3 → CMAX; 4 → SESE
Ciphertext
REGXETSXCMAXSESE
BEGINNER SELF-CHECK

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

  • For key 4-2-3-1, which physical column is read first?
  • Can you explain why all ciphertext chunks have equal length in a complete rectangle?
  • Can you reconstruct rows after placing column chunks?
09 • ERROR CHECK

Common mistakes

!

Reading physical columns left-to-right instead of numeric key order.

!

Using unequal column lengths in a complete rectangle.

!

Forgetting padding.

!

Confusing the key labels with the order the plaintext is written.

10 • SPEED

Competition speed strategies

1

Write key labels above the grid in large digits.

2

Compute rows immediately from ciphertext length and column count.

3

For cryptanalysis, work with whole column chunks rather than moving individual letters repeatedly.

11 • QUICK REFERENCE

What to remember under time pressure

Family Transposition
Rectangle Complete/equal column lengths
Encrypt read order Column label 1,2,3…
Decrypt Fill column chunks, then read rows
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.