a raw state returned by update
.
Finish an incremental sha1 hashing computation.
Returns the final hash.
a raw state returned by update
.
Returns the sha1 hash of the provided input.
To incrementally construct a sha1 hash (e.g. for streaming), use init
,
update
, and final
.
a Uint8Array to be hashed using sha1
Returns the sha1 hash of the provided input.
To incrementally construct a sha1 hash (e.g. for streaming), use init
,
update
, and final
.
a Uint8Array to be hashed using sha1
Begin an incremental sha1 hashing computation.
The returned raw state can be provided to update
with additional input to
advance the computation.
const state1 = sha1.init();
const state2 = sha1.update(state1, new Uint8Array([1, 2, 3]));
const state3 = sha1.update(state2, new Uint8Array([4, 5, 6]));
const hash = sha1.final(state3);
Begin an incremental sha1 hashing computation.
The returned raw state can be provided to update
with additional input to
advance the computation.
const state1 = sha1.init();
const state2 = sha1.update(state1, new Uint8Array([1, 2, 3]));
const state3 = sha1.update(state2, new Uint8Array([4, 5, 6]));
const hash = sha1.final(state3);
Add input to an incremental sha1 hashing computation.
Returns a raw state that can again be passed to update
with additional
input to continue the computation.
When the computation has been updated with all input, pass the raw state to
final
to finish and return a hash.
a raw state returned by either init
or update
a Uint8Array to be added to the sha1 computation
Add input to an incremental sha1 hashing computation.
Returns a raw state that can again be passed to update
with additional
input to continue the computation.
When the computation has been updated with all input, pass the raw state to
final
to finish and return a hash.
a raw state returned by either init
or update
a Uint8Array to be added to the sha1 computation
Generated using TypeDoc
Finish an incremental sha1 hashing computation.
Returns the final hash.