KDF

A key derivation function: an algorithm that turns a password or other secret into one or more cryptographic keys of the right length.

In more detail

KDF stands for key derivation function. Password-based ones such as PBKDF2, scrypt and Argon2 are deliberately slow and use a salt, so guessing the password behind a stolen key or hash becomes expensive. Others, such as the extract-and-expand function used inside TLS, quickly derive several keys from one strong shared secret.

Examples

openssl enc -aes-256-cbc -pbkdf2 -pass file:db.key
hashlib.scrypt(password.encode(), salt=salt, n=2**14, r=8, p=1)

Related terms

Taught in

References