Year 9 · Autumn 2 · CybersecurityBrute force: a Python password-strength checker
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
- Calculate how many passwords are possible with the password formula: C to the power L.
- Explain why making a password longer beats adding symbols.
- Use the lock-out formula to show why three tries, then a wait, defeats brute force.
- Write a Python password checker that scores length, digits and symbols.
Success criteria
- I can work out 26⁸ with a calculator and say what it means.
- I can compare the time to crack a password with and without a lock-out.
- I can run my checker on three passwords and explain each score.
- 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.
- Encryption
- Scrambling data so only someone with the key can read it.
- Firewall
- Checks network traffic and blocks what isn't allowed.
Why password length matters
e.g.ExampleA long passphrase like purple-violin-tuesday-rain beats a short messy one.
The steps for this lesson
Symbols first, then the words, then the equation. Change the numbers to try your own.
Saved on this device.