Expand description
digest defines an API for computing cryptographically secure digests of data.
Structs
A digest is a cryptographic hash of some arbitrary input data, with the goal
of identifying it or detecting changes with high probability.
A salt is an arbitrary byte sequence which is used for password-based key
derivation.
Constants
This module uses sha512, which produces 64 byte digests.
Safe mem_limit base line for password-based key derivation, for interactive
password hashing.
mem_limit for highly sensitive data.
Safe ops_limit base line for password-based key derivation, for interactive
password hashing.
ops_limit for highly sensitive data.
scryptsalsa208sha256 uses 32 byte salts.
Functions
Hash the given password using the given salt and ops limits, placing the result in the given
buffer. Note that the length of “out” is mostly arbitrary.