Skip to main content
Presentation 2 of 16

Classical Ciphers

Substitution and transposition methods

Slides: 24 PDF · 898 KB
Loading slides…

Keyboard: Left arrow Right arrow Slides; F — fullscreen

Summary

Students work by hand through the two families of classical ciphers — substitution (Caesar, affine, Vigenère, Playfair, Hill) and transposition (columnar, rail fence/zigzag). Worked examples cover mod 26 arithmetic, the gcd = 1 condition for the affine and Hill ciphers, key spaces and brute-force attacks. The lecture also examines each cipher's statistical weakness (letter frequencies) and the typical mistake of computing mod with negative numbers.

Key terms

Sezar shifri Affin shifri Vijener shifri Playfer shifri Hill shifri ustunli o'rin almashtirish Zigzag (Rail Fence) mod 26 gcd(a, 26) = 1 chastota tahlili kalitlar fazosi ko'p alifboli shifrlash

Lecture outline

  1. Two families of classical ciphers — taxonomy
  2. Caesar cipher and its key space
  3. Affine cipher and the gcd(a, 26) = 1 condition
  4. Frequency weakness and the polyalphabetic idea
  5. Vigenère cipher: the square and the keyword
  6. Playfair and Hill: the digraph cipher and the matrix cipher
  7. Transposition: columnar method and zigzag (Rail Fence)
  8. Comparison, a typical mistake (negative numbers and mod) and summary
Related lesson Classical Ciphers: Caesar, Vigenere, XOR & Frequency Analysis