BolEnglishLearn · Play · Win
Login

🪪 Security · Security Fundamentals

🪪

Authentication

Security ControlCoreModule 6

Verify the identity of a user or system.

Before granting access, establish who is requesting it.

💡 In practice

A user signs in with password plus MFA.

🖼️ CONCEPT PICTURE
A picture to help remember Authentication
A user signs in with password plus MFA.

💡 Think of a passport check at the airport: before you board, someone confirms you really are who your ticket says you are.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

If you cannot trust who is on the other end, every other control falls apart. Weak sign-in is one of the easiest doors for attackers to walk through. Strong authentication is the foundation that authorization, logging, and privacy all sit on top of.

🛠️ How to achieve it

1
Store passwords safely
Never save a password as plain text. Hash it with a slow, salted algorithm built for passwords.
2
Add a second factor
Pair the password with a one-time code or app approval so a stolen password alone is not enough.
3
Use proven libraries
Rely on a well-tested identity framework instead of writing your own login and token code.
4
Expire and refresh sessions
Give sessions and tokens a sensible lifetime and let users sign out everywhere.

⚠️ Signs of trouble

  • •Passwords are stored in plain text or with weak hashing.
  • •There is no option for a second factor anywhere.
  • •Sessions never expire, so an old login works forever.
  • •The same error reveals whether a username exists, helping attackers guess.
⚠️ Common mistake: Rolling your own login and token handling. Use a battle-tested identity library and enable multi-factor authentication instead.

🎯 Quick check

Score: 0/3

Three questions to test the idea.

  1. 1. What does authentication actually answer?

    Answer: Who is this user or system?

    Authentication establishes identity. What you are then allowed to do is authorization.

  2. 2. How should user passwords be stored?

    Answer: Hashed with a slow, salted password algorithm

    Passwords should be salted and hashed with a slow algorithm so the original value is never stored or recoverable.

  3. 3. Why add multi-factor authentication (MFA)?

    Answer: So a stolen password alone is not enough to get in

    MFA adds a second, different proof of identity, so a leaked password by itself cannot unlock the account.

🔑 Key terms

MFA
Multi-factor authentication: proving identity with two or more different things.
Hashing
A one-way scramble of a password so the real value is never stored.
Session
A server's memory that a particular user is currently signed in.
Token
A signed pass that proves who you are on later requests.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →