Key derivation function
Turns something secret into a key of the right length and shape — but which KDF to pick depends entirely on how good the secret was to begin with.
A KDF takes a secret and produces one or more pieces of key material. The family splits into two branches solving opposite problems, and confusing them is among the more common crypto mistakes.
One branch starts from low entropy, meaning passwords, and must be deliberately slow and memory-hungry to hold back exhaustive search: PBKDF2, bcrypt, scrypt and Argon2. The other starts from material that already has high entropy — the output of a Diffie-Hellman exchange, say — and only needs to even it out and expand it, quickly. That is HKDF's job, extracting first and expanding second. Running HKDF on a password imposes no cost on the attacker at all.