Lesson 3.2

Password storage and hashing

Passwords are hashed with a slow, salted algorithm designed for the job. Anything faster is a favour to whoever steals the table.

Duration
10m
Level
Intermediate
Students
8.5k students

Overview

Passwords are hashed with a slow, salted algorithm designed for the job. Anything faster is a favour to whoever steals the table.

In this lesson you will:

  • Use a slow, salted hash such as argon2 or bcrypt
  • Tune work factors as hardware improves
  • Handle reset flows without leaking account existence

Resources

OWASP Top 10

The official reference for the tools used in this lesson.