DoxigAlpha

strHash

Compute a hash of a password using the scrypt key derivation function. The function returns a string that includes all the parameters required for verification.

Function parameters

Parameters

#
password:[]const u8
out:[]u8

Scrypt parameters

Types

#
Params
Scrypt parameters
HashOptions
Options for hashing a password.
VerifyOptions
Options for hash verification.

Apply scrypt to generate a key from a password.

Functions

#
kdf
Apply scrypt to generate a key from a password.
strHash
Compute a hash of a password using the scrypt key derivation function.
strVerify
Verify that a previously computed hash is valid for a given password.

Source

Implementation

#