Returns the hash a NEW password is written under, clamped to the floors and
ceilings above: the algorithm and its parameters.
argon2id, when asked for, where this runtime has it, and scrypt otherwise
(said once, STS-KEYS-0155). An absent spec is scrypt at 2^15, r=8, p=1
(#820; #872 makes OWASP's minimum the default).
Parameters
spec: any
{ algorithm, memory, passes, parallelism } or
{ algorithm: 'scrypt', logN, r, p }
Returns the hash a NEW password is written under, clamped to the floors and ceilings above: the algorithm and its parameters.
argon2id, when asked for, where this runtime has it, and scrypt otherwise (said once, STS-KEYS-0155). An absent spec is scrypt at 2^15, r=8, p=1 (#820; #872 makes OWASP's minimum the default).