Module: crypto/hash

Requires

Methods

(static) digest(algo, data) → {Uint8Array}

Create a hash on the specified data using the specified algorithm
Parameters:
Name Type Description
algo module:enums.hash Hash algorithm type (see RFC 4880 9.4)
data Uint8Array Data to be hashed
Source:
Returns:
hash value
Type
Uint8Array

(static) getHashByteLength(algo) → {Integer}

Returns the hash size in bytes of the specified hash algorithm type
Parameters:
Name Type Description
algo module:enums.hash Hash algorithm type (See RFC 4880 9.4)
Source:
Returns:
Size in bytes of the resulting hash
Type
Integer