Expand description
The scrypt password hashing function.
scrypt was originally proposed in Stronger Key Derivation via Sequential Memory-Hard Functions and standardized in RFC 7914.
A note on terminology: scrypt is technically a key derivation function, and its output is thus technically a key. However, we expose it here only for the purposes of password verification, and thus we use the term “hash” to refer to its output.
Structs§
- Scrypt
Hash - The output of the scrypt password hashing function.
- Scrypt
Params - The parameters to the scrypt function.
Constants§
- SCRYPT_
HASH_ LEN - The length of an scrypt hash.
- SCRYPT_
PARAMS_ LAPTOP - Recommended paramaters for a laptop.
- SCRYPT_
PARAMS_ SERVER - Recommended parameters for a production server.
- SCRYPT_
SALT_ LEN - The length of an scrypt salt.
Functions§
- scrypt_
generate - Generates an scrypt hash for the given password.
- scrypt_
verify - Verifies a password against an scrypt hash.