AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Proving who you are

Week 23 · Unit 9: Keeping data safe · 3 lessons
1

Logging in step by step

Computing 6: Unit 9, pp. 124–133
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.

Startuser types username and passworddetails match?yesnogrant accessask the user to try againEnd
Worked examples
TryUser typesMatch?Result
1river-moon-82!no (small m)try again
2river-Moon-28!no (28, not 82)try again
3river-Moon-82!yesaccess 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.
Startuser types passwordpassword right?yesnogrant accessadd 1 to wrong trieswrong tries = 3?yesnolock the accountask againEnd
This system has a lock-out rule. It counts the wrong tries. On the third wrong try it locks the account.
RuleTries in one hour
no lock-out (1 try each second)3600
3 tries, then locked for 10 minutes18
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?
TryUser types
storedsun-Kite-19
1sun-kite-19
2Sun-Kite-19
3sun-Kite-19
2
Ravi’s tablet asks for a PIN. The stored PIN is 4812 and Ravi types 4821. Describe what the tablet does.
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?
MinuteWhat the guesser does
05 wrong tries, then locked for 15 minutes
155 wrong tries, then locked again
30?
45?
4
Give one reason why a lock-out helps and one problem that it can cause.