Week 11 · lesson

Cryptotheory Lab: Break the Toy Cipher, Explain the Weakness

The purpose of a classical-cipher lab is not to prove that encryption is useless.

It is to practice a more important habit:

Do not judge a security mechanism by how confusing the output looks. Analyze the design.

This lab uses only teacher-provided toy ciphertexts.

Station 1: Caesar shift

Ciphertext:

VHFXUH WKH ODE

The teacher tells you this is a Caesar cipher.

Build a shift table until the plaintext becomes readable.

Record:

  • shift tried
  • resulting text
  • why you accepted one result as plausible
  • weakness that made the recovery practical

Station 2: Transposition

Your teacher provides a short message produced by a known classroom transposition rule.

Record:

  • letters present
  • suspected dimensions or grouping
  • rearrangement attempts
  • recovered plaintext
  • clue that helped you choose the rule

The important observation is that the letters themselves were never changed.

Station 3: Vigenere

The teacher provides:

  • ciphertext
  • known key length
  • classroom Vigenere table

Use the supplied evidence to recover the plaintext.

Do not brute-force real cryptographic material. This is a guided historical-cipher exercise.

Document the key repetition and the reverse shifts.

Station 4: Encoding decoy

One challenge is not encrypted at all.

It is Base64 or hex-encoded text from Week 10.

Your job is to recognize that no secret key is required.

Explain why calling it "encrypted" would be incorrect.

Build a cryptanalysis ledger

For every station, record:

StationMechanismEvidenceWeakness usedRecovered messageWhy this is classroom-safe

The last column matters. The lab uses synthetic ciphertexts and historical mechanisms, not live credentials or modern protected data.

Compare attack effort

Rate each toy challenge:

  • trivial
  • low effort
  • moderate manual effort

Then explain why.

Do not use message length alone.

Consider:

  • size of keyspace
  • known algorithm
  • repeating patterns
  • preserved letter frequency
  • supplied hints

CTF round

Your teacher provides three flags, such as:

GSC{small_keyspace}
GSC{patterns_leak}
GSC{encoding_is_not_crypto}

Each flag is hidden with one of the mechanisms from Weeks 10–11.

For each challenge:

  1. identify the likely transformation
  2. explain the clue
  3. recover the plaintext
  4. record the complete reasoning path

A correct flag with no reasoning is incomplete.

What modern encryption needs to improve

Based only on what you learned from these historical mechanisms, build a requirements list for a stronger encryption system.

Your list might include:

  • large keyspace
  • no simple repeating key pattern
  • no obvious mapping from plaintext frequency to ciphertext frequency
  • secure key handling
  • resistance to known analysis methods

Do not try to design your own modern cipher.

The professional lesson from weak cryptography is usually not "invent something more complicated." It is to use well-studied modern cryptographic standards correctly.

Build the failure report

Choose the weakest classical mechanism from the lab and write:

Security goal

What was it trying to protect?

Mechanism

How did it transform the message?

Failure

What structural weakness allowed recovery?

Evidence

Which lab observation demonstrated that weakness?

Modern lesson

What requirement should a stronger system satisfy?

Evidence for Lesson 3

Submit:

  • four-station cryptanalysis ledger
  • three CTF reasoning records
  • attack-effort comparison
  • stronger-system requirements list
  • failure report

Finish with:

The ciphertext looked difficult until I recognized ________.

That is the habit classical cryptography is meant to teach: understand the mechanism before you trust the appearance.