5.6 Safe computing: authenticationProving you are you

Authentication measures protect devices and information from unauthorized access. The two the CED names are strong passwords and multifactor authentication. A strong password is something that is easy for a user to remember but would be difficult for someone else to guess based on knowledge of that user. Your dog's name plus your birth year fails that test, because anyone who follows you online knows both.
?Wait, why is length so powerful?
Beyond the course, as a bonus: the math behind "longer is stronger". An attacker with a stolen file of scrambled passwords can test guesses very fast, so suppose 10 billion guesses a second. The table shows how many possible passwords each style has and the longest such an attacker would need to try them all.
| Password style | Possible passwords | Worst case at 10 billion/s |
|---|---|---|
| 4-digit PIN | 10,000 | about a millionth of a second |
| 8 lowercase letters | about 209 billion | about 21 seconds |
| 8 letters and digits, mixed case | about 218 trillion | about 6 hours |
| 4 random words (7,776-word list) | about 3.7 quadrillion | about 4.2 days |
| 12 letters and digits, mixed case | about 3.2 sextillion | about 10,000 years |
| 6 random words | about 221 sextillion | about 700,000 years |
Using a different password on every site matters just as much. When one site leaks its passwords, and some always do, attackers try those same email and password pairs on banks, email and social media. A unique password per site means one leak stays one leak. A password manager can remember them for you.
Multifactor authentication is a method of computer access control in which a user is only granted access after successfully presenting several separate pieces of evidence to an authentication mechanism, typically in at least two of three categories: knowledge (something they know), possession (something they have) and inherence (something they are). Multifactor authentication requires at least two steps, and each step provides a new layer of security that must be broken to gain unauthorized access.
| Category | Examples | Stolen by |
|---|---|---|
| Something you know | Password, PIN, answer to a security question | Phishing, keylogging, guessing, a data breach |
| Something you have | Phone that gets a code, security key, ID badge | Physically taking the item |
| Something you are | Fingerprint, face scan, voice | Very hard to copy |
?Wait, isn't a username a factor?
I thought about it. Show me
- Sort every piece of evidence into know, have or are.
Why?
Multifactor depends on categories, not on the number of steps. Three passwords would still be one factor. - (a) Password: know. PIN: know. One category: not multifactor.
- (b) Badge: have. Fingerprint: are. Two categories: multifactor, and no password at all.
- (c) Password: know. Security question: know. Not multifactor, and a birthplace is easy to find online.
- (d) Face scan: are. Code from an app on your phone: have. Two categories: multifactor.
Answer: (b) and (d) are multifactor. (a) and (c) use two things you know, so they are single-factor.
Stuck? Get a hint
- Label each piece: know, have or are.
- A PIN and a security question are both things you know.
- Multifactor needs at least two different labels.
- AEntering a password, then entering a second, different password
- BEntering a password, then entering a code sent to your phone
- CEntering a username, then entering a password
- DAnswering two security questions
Show the answer
B. A password is something you know, and the code proves you have your phone: two different categories. Every other choice is one category, things you know, and usernames aren't evidence at all.

On multifactor questions, write K, H or A (know, have, are) above each piece of evidence in the choices. The right answer is the only one with two different letters.
- Strong password: easy for you to remember, hard for anyone to guess, even someone who knows you. Longer and more random is stronger.
- Use a different password for every site.
- Multifactor authentication: at least two categories of evidence (know, have, are). Each step adds a layer an attacker must break.