[−][src]Module mundane::password::scrypt
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
ScryptHash | The output of the scrypt password hashing function. |
ScryptParams | 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. |