dreamworkAPI
Ctrl K
GitHub
typeDocs / pbkdf2 / Options

pbkdf2.Options

typesharedmenusource

The options for the pbkdf2 function.

Fields

NameTypeDescription
passwordstringThe input password or passphrase to derive a key from. Not limited in length, but longer passphrases are usually stronger.
saltstringA unique, random value added to the password before hashing. Prevents rainbow table attacks. Common size: 16 to `32 bytes.
iterationsinteger | nilNumber of hashing iterations, higher values make brute-force attacks harder. Recommended minimums: * 100,000+ for general applications. * 300,000+ for secure storage (as of 2024 recommendations). Default value: 4096 = 4096
lengthinteger | nilDesired length of the derived key (in bytes). Default value: 16 = 16
hashcrypto.HashClassThe hash algorithm class to use for the key derivation.
Generated from the dreamwork meta branch.