Encryption
Data Transmission · 4 question types
Exam Frequency Analysis
Past paper frequency (2018 to 2024)
This topic accounts for approximately 4% of your exam marks.
Symmetric vs asymmetric encryption questions are growing as cybersecurity becomes more prominent.
The is one of the oldest encryption methods, named after Julius Caesar who reportedly used it for military messages. It is far too weak to use today, but the syllabus uses it as a teaching example of how a symmetric cipher works.
The rule
Each letter in the plaintext is replaced by the letter N positions further along the alphabet, where N is the agreed shift (the key). When the shift goes past Z, it wraps around back to A.
The shift N is the key. Both sender and receiver must agree on it before any messages are sent. Because the same key is used to encrypt and decrypt, the Caesar cipher is a symmetric cipher.
Decryption: shift in the opposite direction
To decrypt a Caesar cipher with shift +N, shift each letter backwards by N positions, wrapping from A back to Z when needed.
Why the Caesar cipher is broken
The Caesar cipher is hopelessly insecure by modern standards:
- Only 25 distinct . A shift of 0 leaves the message unchanged; shifts 1 through 25 are the only meaningful encryptions. An attacker can try every shift by hand in a couple of minutes (a "brute-force" attack).
- Letter frequencies leak the shift. In English, E is by far the most common letter, followed by T, A, O, I, N. If you take a piece of Caesar-encrypted text and find that one letter appears far more often than others, that letter is almost certainly the shifted version of E. Two minutes of frequency analysis cracks any Caesar cipher.
- No protection against pattern recognition. Repeated letters in the plaintext (like the "SS" in PASS) become repeated letters in the ciphertext, which gives away word structure.
The Caesar cipher is only used as a teaching example, not for real-world security. Modern symmetric ciphers like AES use 128-bit or 256-bit keys, giving roughly 10³⁸ to 10⁷⁷ possible combinations, far beyond what any attacker can search.