crow/crypto/password-hash.crow (source)
password-hash-quality enum
quality-moderatequality-sensitive
These correspond to options from libsodium.
Use quality-moderate for most cases.quality-sensitive is for non-interactive use cases.
password-hash nat8 array(password string, quality password-hash-quality)
Get the hash of a password.
password-matches-hash bool(password string, hash nat8 array) bare
With high probability, this will only be true if hash was the result of hashing password.