Update the hash with data
method
SHA1.update
Referenced types
type BlobOrStringOrBuffer = string | NodeJS.TypedArray | ArrayBufferLike | Blob
class SHA1
This is not the default because it's not cryptographically secure and it's slower than SHA512
Consider using the ugly-named SHA512_256 instead
- @param encoding
DigestEncoding
to return the hash in. If none is provided, it will return aUint8Array
.@param hashIntoTypedArray
to write the hash into. Faster than creating a new one each time - hashInto?: TypedArray<ArrayBufferLike>): TypedArray;
Run the hash over the given data
@param inputstring
,Uint8Array
, orArrayBuffer
to hash.Uint8Array
orArrayBuffer
is faster.@param hashIntoTypedArray
to write the hash into. Faster than creating a new one each time): string;Run the hash over the given data
@param inputstring
,Uint8Array
, orArrayBuffer
to hash.Uint8Array
orArrayBuffer
is faster.@param encodingDigestEncoding
to return the hash in