Properties

algorithm

string

The password hashing algorithm identifier. The following algorithm identifiers are supported: SCRYPT, STANDARD_SCRYPT, HMAC_SHA512, HMAC_SHA256, HMAC_SHA1, HMAC_MD5, MD5, PBKDF_SHA1, BCRYPT, PBKDF2_SHA256, SHA512, SHA256 and SHA1.

blockSize

(number or undefined)

The block size (normally is 8) of the hashing algorithm. Required for the STANDARD_SCRYPT algorithm.

derivedKeyLength

(number or undefined)

The derived key length of the hashing algorithm. Required for the STANDARD_SCRYPT algorithm.

key

(non-null Buffer or undefined)

The signing key used in the hash algorithm in buffer bytes. Required by hashing algorithms: SCRYPT, HMAC_SHA512, HMAC_SHA256, HAMC_SHA1 and HMAC_MD5

memoryCost

(number or undefined)

The memory cost required for SCRYPT algorithm, or the CPU/memory cost. Required for STANDARD_SCRYPT algorithm.

parallelization

(number or undefined)

The parallelization of the hashing algorithm. Required for the STANDARD_SCRYPT algorithm.

rounds

(number or undefined)

The number of rounds for hashing calculation. Required for SCRYPT, MD5, SHA512, SHA256, SHA1, PBKDF_SHA1 and PBKDF2_SHA256.

saltSeparator

(non-null Buffer or undefined)

The salt separator in buffer bytes which will be appended to salt when verifying a password. This is only used by the SCRYPT algorithm.