---
title: "Authentication and Multi-Factor Authentication"
domain: cybersecurity
level: beginner
duration: "2h total"
---

# Authentication and Multi-Factor Authentication

Most breaches still start with a stolen or guessed password. This module explains how systems check who you are, what modern guidance says about passwords, how the six-digit codes of authenticator apps actually work, and why some second factors stop phishing while others don't.

## Learning objectives
By the end of this module you will be able to:
1. Explain the authentication factors (something you know, have, are) and the difference between identification, authentication and authorization.
2. Apply current password guidance (NIST SP 800-63B): length over complexity, blocklists of breached passwords, no forced periodic changes.
3. Explain how a server stores passwords safely with a salt and a slow hash function.
4. Explain how time-based one-time passwords (TOTP, RFC 6238) are generated and verified.
5. Compare MFA methods (SMS, TOTP, push notifications, FIDO2 security keys and passkeys) by their resistance to phishing.

## Prerequisites
- [04 — Security Fundamentals](../04-security-fundamentals/README.md). [05 — Cryptography Basics](../05-cryptography-basics/README.md) helps with hashing.
- For the lab: Python 3.9 or later; optionally an authenticator app on your phone. Cost: free.

## Contents
| Type | Duration |
|---|---|
| [Theory](lesson.md) | 50 min |
| [Hands-on lab: storing passwords and building TOTP codes](lab.md) | 45 min |
| [Assessment (10 questions)](quiz.md) | 15 min |

## Further reading
- [NIST SP 800-63B-4](https://pages.nist.gov/800-63-4/sp800-63b.html) — Digital Identity Guidelines: Authentication and Authenticator Management
- [RFC 6238](https://www.rfc-editor.org/rfc/rfc6238) — TOTP: Time-Based One-Time Password Algorithm
- [RFC 4226](https://www.rfc-editor.org/rfc/rfc4226) — HOTP: An HMAC-Based One-Time Password Algorithm
- [W3C Web Authentication (WebAuthn)](https://www.w3.org/TR/webauthn-2/)
