Authentication, passwords and sessions
A database of user passwords leaks. If the passwords were stored well, the attackers learn almost nothing. If not, millions of accounts across the web are at risk, because people reuse passwords. What makes the difference?
In this lesson you'll learn to
- Store passwords with a slow, salted hash such as Argon2id or bcrypt, and explain why.
- Defend logins against guessing and credential stuffing without locking real users out.
- Add a second factor, and explain why passkeys resist phishing.
- Keep users signed in safely with session cookies, and end sessions when needed.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.