Hash
Methods
free()
computeBlake2b()
Computes a 32-byte Blake2b hash from the input data.
Blake2b is used for example to compute a public key's address.
Parameter | Type |
---|---|
First | Uint8Array |
computeNimiqArgon2d()
Computes an Argon2d hash with some Nimiq-specific parameters.
iterations
specifies the number of iterations done in the hash
function. It can be used to control the hash computation time.
Increasing this will make it harder for an attacker to brute-force the
password.
derived_key_length
specifies the number of bytes that are output.
Parameter | Type |
---|---|
First | number |
computeNimiqArgon2id()
Computes an Argon2id hash with some Nimiq-specific parameters.
iterations
specifies the number of iterations done in the hash
function. It can be used to control the hash computation time.
Increasing this will make it harder for an attacker to brute-force the
password.
derived_key_length
specifies the number of bytes that are output.
Parameter | Type |
---|---|
First | number |
computeSha256()
Computes a 32-byte SHA256 hash from the input data.
Parameter | Type |
---|---|
First | Uint8Array |
computeSha512()
Computes a 64-byte SHA512 hash from the input data.
Parameter | Type |
---|---|
First | Uint8Array |