GoalDescribe how a system checks login details and trace what happens after right and wrong tries.
New words
authentication · checking that a user is who they say they arecredentials · the details a user gives to prove who they are, such as a username and a passwordaccess · permission to use a system or to see its datalock-out · stopping a user from trying again for a while after too many wrong tries
Explanation
Authentication means checking who is asking to use a device, an account or a system. It keeps unauthorised people out. The user types in credentials, such as a username and a password. The system compares them with the details that it has stored. If they match, the system grants access. If they do not match, the user is asked to try again. After several wrong tries many systems use a lock-out, which means that nobody can try again for a while. This slows down people who are only guessing. Passwords are case sensitive, so a capital letter and a small letter are different characters.
Worked examples
Try
User types
Match?
Result
1
river-moon-82!
no (small m)
try again
2
river-Moon-28!
no (28, not 82)
try again
3
river-Moon-82!
yes
access granted
The stored password is river-Moon-82!. The system compares each try character by character. A single capital letter or digit in the wrong place makes the try fail.
This system has a lock-out rule. It counts the wrong tries. On the third wrong try it locks the account.
Rule
Tries in one hour
no lock-out (1 try each second)
3600
3 tries, then locked for 10 minutes
18
A lock-out makes guessing much slower. Suppose a guesser can try one password every second. The rule is ‘three tries, then a 10-minute lock’. In an hour there are 60 ÷ 10 = 6 blocks of tries, so only 6 × 3 = 18 tries instead of 3600.
Class activity
Gatekeeper game (no computer): one player is the system and keeps a secret made-up password on a card inside an envelope. Other players are users and take turns to say a guess. After three wrong guesses in a row the user is locked out and must sit out for two minutes (use a clock). Count how many guesses the group makes in ten minutes with the lock-out rule, and how many they could make without it. Talk about why a real owner who makes a typing mistake needs a way to get back in. If you have a computer or tablet, ask an adult to show you what a website says when a login is wrong.
Practice
1
The stored password is sun-Kite-19. A user tries (1) sun-kite-19, (2) Sun-Kite-19, (3) sun-Kite-19. Which tries are accepted? Why?
Try
User types
stored
sun-Kite-19
1
sun-kite-19
2
Sun-Kite-19
3
sun-Kite-19
Only try 3 is accepted. In tries 1 and 2 a capital letter is wrong, and passwords are case sensitive.
2
Ravi’s tablet asks for a PIN. The stored PIN is 4812 and Ravi types 4821. Describe what the tablet does.
The two PINs do not match, because the last two digits are swapped. The tablet does not open. It shows that the PIN is wrong and Ravi can try again.
3
A system allows 5 wrong tries and then locks for 15 minutes. The guesser makes 5 tries at minutes 0, 15, 30 and 45 of the first hour. How many tries can the guesser make in that hour?
Minute
What the guesser does
0
5 wrong tries, then locked for 15 minutes
15
5 wrong tries, then locked again
30
?
45
?
There are 4 blocks of 5 tries, so 4 × 5 = 20 tries.
4
Give one reason why a lock-out helps and one problem that it can cause.
It slows down people who are guessing. A real owner who makes typing mistakes can be locked out too, so the system needs a safe way to reset the password.