Classical Ciphers
Substitution and transposition methods
Loading slides…
Open the PDF file
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
- Two families of classical ciphers — taxonomy
- Caesar cipher and its key space
- Affine cipher and the gcd(a, 26) = 1 condition
- Frequency weakness and the polyalphabetic idea
- Vigenère cipher: the square and the keyword
- Playfair and Hill: the digraph cipher and the matrix cipher
- Transposition: columnar method and zigzag (Rail Fence)
- Comparison, a typical mistake (negative numbers and mod) and summary