password_hash
a Node version of php's password_hash
Generating a Salt
;
saltSize
: number of bytes (optional, default=16)
Hashing a Password
hashsalt Optional iterations Optional keylen;
password
: plaintext password to hash
salt
: salt to use for hash
iterations
: number of iterations to hash (optional, default=1000)
keylen
: number of bytes (optional, default=64)
Verifying a Password
;
password
: plaintext password to verify
pack
: the hashed password and info returned from .hash(...);