A key derivation function (KDF) is an algorithm that turns a secret, such as a password, passphrase or shared key, into one or more cryptographic keys of a fixed length. Password-based KDFs combine the secret with a random salt and repeat a cryptographic hash function many times, or use large amounts of memory, so that each guess is costly and a brute-force attack becomes slow. Widely used examples are PBKDF2, scrypt and Argon2, which won the Password Hashing Competition in 2015.
KDFs are central to crypto wallets. Ethereum keystore files protect a private key by encrypting it with a key derived from the user's password through scrypt or PBKDF2. The BIP-39 standard runs a seed phrase and optional passphrase through PBKDF2 with HMAC-SHA512 and 2,048 iterations to produce the 512-bit seed from which wallet keys are derived. A strong KDF cannot rescue a weak password, but it raises the cost of every attempt.
Ref 1300000410