Class: sha1

sjcl.hash.sha1

new sha1()

Context for a SHA-1 operation in progress.
Source:

Members

(constant) blockSize

The hash's block size, in bits.
Source:

Methods

finalize() → {bitArray}

Complete hashing and output the hash value.
Source:
Returns:
The hash value, an array of 5 big-endian words. TODO
Type
bitArray

reset()

Reset the hash state.
Source:
Returns:
this

update(data)

Input several words to the hash.
Parameters:
Name Type Description
data bitArray | String the data to hash.
Source:
Returns:
this

(static) hash(data) → {bitArray}

Hash a string or an array of words.
Parameters:
Name Type Description
data bitArray | String the data to hash.
Source:
Returns:
The hash value, an array of 5 big-endian words.
Type
bitArray