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?

YesNoNo: tryagainYesStart loginEnter usernameand password(passwordshown as dots)Does it match thestored details?Access givenAdd 1 to thefailed-attemptcountHas the countreached the limit?Account locked(or a delayadded)
Run=1: Maya, the real userAccount=openFailed attempts=0

Output

 

Step 1: Run 1. Maya wants to get into her own account. In this example the limit is 3 failed attempts.

1 / 22

Press Next to move along the path. Watch the failed-attempt count in the state panel.

Step 1 of 22: Run 1. Maya wants to get into her own account. In this example the limit is 3 failed attempts..

Exam line: The system checks every attempt and counts the failures. When the count reaches the limit, the account is locked or a delay is added, so repeated guessing is stopped.
Watch out: The flowchart treats Maya and the program in exactly the same way. It only checks the password and counts the wrong attempts.

Computer Science · How big is the search?

How many passwords is that?

A password is exactly 6 characters long and every character is a lower-case letter (26 choices for each character). Roughly how many different passwords are possible? Slide to your estimate, in millions.

Your estimate

500 million

0 million1000 million

Exam line: Longer passwords and a wider mix of characters mean far more possible combinations for a brute-force attack to try.

Computer Science · Which would you trust?

Weakest to strongest

How hard each example password would be to guess or crack by trying many combinations

1 · Weakest4 · Strongest
  1. Emma0308

    A name followed by a date of birth, with a capital letter at the start and no symbol.

  2. emma

    A name, 4 lower-case letters.

  3. T9$mQ2!vL7#xB4

    14 characters: upper-case and lower-case letters, numbers and symbols, no word or personal information.

  4. emma0308

    The same name with a date of birth added, all lower-case.

Exam line: Judge a password by its length, its mixture of characters and whether it is built from easily guessed personal information.

Computer Science · Which measure helps with what?

Match the measure to the problem

Tick each problem that a measure would help to make harder. A tick means harder, not impossible.

Enforced password rules
Limit on failed login attempts
Hiding the password as it is typed
Two-factor authentication

Exam line: Different measures defend against different problems, which is why a password alone does not guarantee security.

Your turn

Say it in your own words

Explain how limiting the number of failed login attempts helps defend against a brute-force attack. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

Exam line: Cover three ideas: what the attacker is doing, what the system does after too many wrong attempts, and what that means for the attacker.

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

1A password system checks the password before giving access, so only someone who knows the correct password should get in.
2Long, varied passwords that are not dictionary words or easily guessed personal information are harder to guess or crack by brute force.
3The system adds protection too: enforced rules, limited failed attempts, hidden typing and two-factor authentication.
4A password alone does not guarantee security, because users can choose weak passwords, reuse them, write them down or reveal them.

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?
It asks the user for a secret password, usually with a username, before giving access to a system, account or data. That authenticates the user.
What are password systems for?
Preventing unauthorised access: only a person who knows the correct password should be able to get in.
What makes a password strong?
It is long and mixes upper-case and lower-case letters, numbers and symbols.
Which two things should a strong password avoid?
Dictionary words, and easily guessed personal information such as a name or date of birth.
What is a brute-force attack?
Trying many combinations until the right password turns up.
Why is a long, mixed password harder to crack by brute force?
There are far more possible combinations to try.
Name two rules a password system can enforce.
Any two of: a minimum length, required types of character, passwords that must be changed, passwords that cannot be reused.
How does limiting failed login attempts help?
After too many wrong attempts the system locks the account or adds a delay, which defends against brute-force attacks.
Why hide a password as it is typed?
So it can't be read off the screen as it is typed.
What is two-factor authentication?
A second item, such as a code sent to the user's phone, is also required as well as the password.
How can a user weaken their own password protection?
By choosing a weak password, reusing it, writing it down, or revealing it through phishing or other social engineering.

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 posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

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.