Week 11 · lesson

Transposition and Vigenere: Same Goal, Different Mechanisms

Classical ciphers can hide a message in different ways.

A substitution cipher changes symbols.

A transposition cipher rearranges where symbols appear.

A Vigenere cipher uses a repeating keyword to apply different alphabet shifts across the message.

These methods are still not appropriate for modern security, but comparing them makes cryptographic design easier to understand.

Transposition changes position

Consider the plaintext:

MEETATNOON

A simple classroom transposition might write the text in two rows and read it by columns.

The letters remain the same. Their positions change.

That means letter frequency is preserved exactly even though the message order becomes harder to read.

Substitution and transposition leak different clues

Compare:

  • Caesar: each plaintext letter is replaced by another letter
  • transposition: plaintext letters remain but move positions

A defender studying ciphertext should ask what structural information survives the transformation.

For transposition, the exact set of letters remains visible.

For a simple substitution, repeated-letter patterns may remain.

Vigenere introduces a repeating key

The Vigenere cipher uses a keyword to choose different shifts.

Example key:

KEYKEYKEY...

Each key letter represents a shift applied to the corresponding plaintext letter.

Conceptually:

plaintext:  ROBOTNIX
key:        KEYKEYKE
ciphertext: [result after per-letter shifts]

The same plaintext letter can encrypt to different ciphertext letters depending on its position in the repeating key.

That reduces some obvious single-shift patterns.

But the repeating key creates its own pattern

If the key repeats, the cipher has periodic structure.

A long message can expose relationships between positions encrypted with the same key letter.

This is an important cryptographic lesson:

Fixing one weakness can introduce or expose another structural weakness.

Classroom Vigenere lab

Use a teacher-provided Vigenere table or approved tool.

Encrypt this fictional plaintext:

DEFENDDATA

with the key:

KEY

Record:

  • repeated key under the plaintext
  • shift used for each position
  • ciphertext result

Then decrypt it and prove you returned to the original message.

Do not use real secrets or credentials.

Compare key choices

Analyze these fictional keys:

  • A
  • CAT
  • ROBOTNIX
  • a long non-repeating random sequence supplied by the teacher

Which creates the most obvious repetition in a Vigenere-style classroom cipher?

Which would be hardest to analyze manually?

Do not jump from "harder" to "secure by modern standards." This remains a historical learning model.

Mechanism comparison

Complete this table:

CipherWhat changes?Key or rulePattern that may surviveModern use?
Caesarlettersone shiftrepeated structure, tiny keyspaceNo
Transpositionpositionsrearrangement ruleletter frequenciesNo
Vigenereletters with changing shiftsrepeating keywordkey periodicityNo

Add one row comparing Base64 encoding from Week 10.

Break a weak design by reasoning

Your teacher provides three short ciphertexts and tells you which classical family produced each one.

Your job is not to automate an attack. Instead, identify the weakness you would investigate first.

Examples:

  • Caesar → small shift space
  • transposition → unchanged letter counts and rearrangement pattern
  • Vigenere → repeating key length

Write the evidence that makes that weakness relevant.

Design a better question

Weak question:

Which cipher is strongest?

Better questions:

  • How large is the keyspace?
  • Does the key repeat?
  • What plaintext structure leaks through?
  • Can the same key be reused safely?
  • What assumptions does the design rely on?

Modern cryptography is built around stronger answers to questions like these.

Evidence for Lesson 2

Submit:

  • transposition example
  • Vigenere encryption/decryption table
  • key-comparison analysis
  • cipher mechanism table
  • three weak-design analyses

Finish with:

The Vigenere cipher is stronger than a single Caesar shift in this classroom model, but it still leaks ________.

A more complicated transformation is not automatically a secure one. Cryptography has to survive analysis of the mechanism, not just first impressions.