KeyDerivation
Key derivation refers to the process of producing cryptographic keys from a secret material, such as a password or a master key, using a key derivation function (KDF). The goal is to obtain keys suitable for encryption, authentication, or other cryptographic operations while preserving security properties of the input secret.
A KDF takes input material, a salt, parameters such as iteration count or memory-hardness, and a desired
Main families include password-based KDFs such as PBKDF2, scrypt, and Argon2, and extract-then-expand constructions like HKDF
Typical uses include deriving encryption keys from a user password for storage or transport, generating per-session
Security considerations include using a unique random salt per derivation, choosing appropriate iteration counts or memory