defaultKdfChoice top-level constant
KdfChoice
const defaultKdfChoice
Default key derivation function (KDF) choice for password-based key derivation.
Argon2id is intentionally slow and memory-intensive to protect against brute-force attempts to derive passwords from verification keys:
- Memory-hard design resists GPU and ASIC attacks.
- Winner of the 2015 Password Hashing Competition.
- Recommended by security experts for password hashing.
You can override this by specifying a different KdfChoice when calling User.createSaltedVerificationKey or User.fromUserCredsAndChallenge.
Implementation
const defaultKdfChoice = KdfChoice.argon2id;