GCSE · Computer Science · AQA · Spec 8525
Password systems
Mistype your password once and you simply try again. A program that keeps guessing password after password gets shut out. Same login, very different ending. What's going on?
Computer Science · Password systems
One login, two very different runs
Step through the same login check twice: first for Maya, who mistypes once, then for a program that just keeps guessing.
Before you press Next: when the program keeps guessing, which box in the flowchart do you think will finally stop it?
Output
Step 1: Run 1. Maya wants to get into her own account. In this example the limit is 3 failed attempts.
Press Next to move along the path. Watch the failed-attempt count in the state panel.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Typing your password wrong once is annoying. A program that keeps guessing is a different problem. See how the same login check handles both.
What you need to know
- A password system asks for a secret password, usually with a username, before giving access; this authenticates the user.
- It helps prevent unauthorised access to a computer system, account or data, because only someone who knows the password should get in.
Have a goSomeone knows your username but not your password. Does the system let them in? Decide before you reveal.
No.
Only a person who knows the correct password should be able to get in, and that is how the system helps prevent unauthorised access.
- Strong passwords are long and mix upper-case and lower-case letters, numbers and symbols.
- Avoid dictionary words and easily guessed personal information, such as a name or date of birth.
Have a goYour friend's password is her dog's name plus her birthday. Strong or weak? Give one reason.
Weak: a name and a birthday are easily guessed personal information.
Mixing in numbers doesn't rescue a password that is built from something other people could guess.
- Trying lots of combinations is a brute-force attack, and a strong password makes that harder.
- The system can enforce rules: a minimum length, required types of character, and passwords that must be changed and not reused.
- Limiting failed login attempts, by locking the account or adding a delay after too many wrong ones, defends against brute force.
- Hiding the password as it is typed helps; two-factor authentication also needs a second item, like a code sent to your phone.
- Users can undermine a password: they may choose a weak one, reuse it or write it down.
- They may also reveal it through phishing or other social engineering, so a password alone does not guarantee security.
Have a goA classmate boasts: "My password is 20 random characters, and it's on a sticky note on my monitor. Unhackable!" Which weakness just walked in?
Writing it down.
Strength only helps against guessing. A password anyone can read off a note is no use, however long it is.
The big picture
A password system asks for a secret password, usually with a username, and only gives access if it matches, which authenticates the user and helps prevent unauthorised access. Strong passwords are long, mixed and not easily guessed, which makes brute-force attacks harder. The system can also enforce rules, limit failed attempts, hide the password as it is typed and use two-factor authentication, but users can still undermine a password, so a password alone does not guarantee security.
Key points
Worked example
Problem
Priya's password is long, mixes upper-case and lower-case letters, numbers and symbols, and is not a dictionary word or personal information. Her system limits failed login attempts. Then she is tricked by a phishing message into revealing the password, and someone logs in to her account. Work out which protections did nothing here, and which extra check would still have stood in the way.
⚠ Watch out
Believing a strong password alone makes an account secure. Strength helps against guessing, not against giving the password away: users may reuse it, write it down or be tricked into revealing it. Systems add measures such as limits on failed attempts and two-factor authentication.
Memory hook
Picture a keypad door that counts wrong tries and shuts you out after too many. Make the code long and varied, limit the tries, add a second check, and never hand the code over. (The analogy ends there: real logins have more measures.)
Check yourself
No peeking: name two rules a system can enforce about passwords, one thing it can do after too many wrong attempts, and the extra check that asks for a second item.
Flashcards
(11)What does a password system do?
What are password systems for?
What makes a password strong?
Which two things should a strong password avoid?
What is a brute-force attack?
Why is a long, mixed password harder to crack by brute force?
Name two rules a password system can enforce.
How does limiting failed login attempts help?
Why hide a password as it is typed?
What is two-factor authentication?
How can a user weaken their own password protection?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 4 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.