apoc v1.0.0-rc1 Apoc.Hazmat.KDF.HKDF View Source
HKDF Key Derivation function described in RFC5869
Link to this section Summary
Functions
Derives a key using HKDF and HMAC256.
Link to this section Types
Specs
salt() :: binary()
Link to this section Functions
Specs
Derives a key using HKDF and HMAC256.
Takes a secret (say a user's password) and a salt which must be at least 32 bytes long. The salt does not necessarily need to be secret for the derived key to be secure but even greater security is realised if it is so. See RFC5869, Section 3.1.
Options
:infoadditional info string for optional application specific context:lengththe length of the key required (defaults to 32 and must be less than 256)