PBKDF2
PronunciationPEE-BEE-KAY-DEE-EF-too
Definition
PBKDF2 is a standard way to turn a password into a key or stored hash by repeating a hash function many thousands of times with a salt, which makes guessing passwords slow.
Where you hear it
In Django's default password hasher, security audits (iteration counts) and comparisons with bcrypt and Argon2.
Examples
Django hashes passwords with PBKDF2 and a random salt by default.
Raise the iteration count as hardware gets faster.
Stored password hashes use PBKDF2 with many iterations, which slows down guessing.
Common mistake
Using plain SHA-256 for passwords. It is fast, so attackers can test billions of guesses per second.
Don't confuse with
A normal hash, designed to be fast. PBKDF2 is deliberately slow for password storage.
Say it at work
- In a meeting or chat
How many PBKDF2 iterations do we use?
- In an email or ticket
Consider Argon2 for new systems.