Year 9 · Autumn 2 · CybersecurityDefences, and a Caesar cipher in Python
Topic 17 Cybersecurity
KS3 Computing · Cybersecurity protects computers and data. Most attacks trick people or use weak systems, so good defences cover both.
Programming Networks and Digital CommunicationCambridge Lower Secondary Computing 0860
You will learn to
- Encrypt and decrypt a word with a Caesar cipher by hand.
- Use ord, chr and mod 26 in Python, so a shift past Z wraps round to A.
- Explain why a Caesar cipher is weak: there are only 25 useful keys.
- Name four layers of defence, like 2FA, updates, a firewall and backups, and what each stops.
Success criteria
- I can turn HELLO into KHOOR with a shift of 3, and back again.
- I can predict that ord('A') is 65 and chr(66) is 'B'.
- I can crack a Caesar message by trying every shift.
- I can name four layers of defence and the attack each one stops.
- two-factor authentication
- Logging in with two things: e.g. a password and a phone code.
- Firewall
- Checks network traffic and blocks what isn't allowed.
- Encryption
- Scrambling data so only someone with the key can read it.
- Malware
- Malicious software: viruses, worms, trojans, ransomware, spyware.
- Phishing
- Fake messages that trick people into giving details.
- Brute force
- Trying every possible password until one works.
Defences
- Strong passwords + two-factor authentication: a code on your phone too.
- Lock-outs after 3–5 wrong tries.
- Firewall: blocks traffic that breaks its rules.
- Anti-malware.
- Updates (patches): fix security holes.
- Encryption.
- Backups: beat ransomware.
- Access levels: students can't edit grades.
- Input validation: stops SQL injection.
- Penetration testing: paid, permitted ethical hackers.
- Physical security: locks, cameras, swipe cards.
Encryption
Encryption turns plaintext into ciphertext with a key. Only someone with the key can turn it back.
- Caesar cipher, key = 3: shift each letter 3 places.
- H → K, E → H, L → O, L → O, O → R.
- HELLO → KHOOR. Shift back 3 to decrypt.
!Watch outCaesar is easy to break: only 25 possible shifts. Modern keys are hundreds of bits long (2²⁵⁶ possibilities).
Symmetric: same key locks and unlocks. Public-key: anyone locks with your public key; only your private key unlocks. HTTPS uses both.
The steps for this lesson
Saved on this device.