The goog.crypt.Sha1 Class

goog.crypt.Sha1
> goog.crypt.Hash

goog.crypt.Sha1()

SHA-1 cryptographic hash constructor. The properties declared here are discussed in the above algorithm document.

.digest()

returns {Array.<number>}
The finalized hash computed from the internal accumulator.

.reset()

Resets the internal accumulator.

.update(bytes, opt_length)

Adds a byte array (array with values in [0-255] range) or a string (might only contain 8-bit, i.e., Latin1 characters) to the internal accumulator.

bytes {Array.<number>|Uint8Array|string}
Data used for the update.
opt_length {number=}
Number of bytes to use.