method
CryptoHasher.copy
Perform a deep copy of the hasher
Referenced types
class CryptoHasher
Hardware-accelerated cryptographic hash functions
Used for crypto.createHash()
- readonly static algorithms: SupportedCryptoAlgorithms[]
List of supported hash algorithms
These are hardware accelerated with BoringSSL
Perform a deep copy of the hasher
- ): string;
Finalize the hash. Resets the CryptoHasher so it can be reused.
@param encodingDigestEncodingto return the hash in@param hashIntoTypedArrayto write the hash into. Faster than creating a new one each time - inputEncoding?: BufferEncoding
Update the hash with data
@param inputData to add to the hash.
Uint8ArrayorArrayBufferis faster than a string Run the hash over the given data
@param inputstring,Uint8Array, orArrayBufferto hash.Uint8ArrayorArrayBufferis faster.hashInto: TypedArray): TypedArray;Run the hash over the given data
@param inputstring,Uint8Array, orArrayBufferto hash.Uint8ArrayorArrayBufferis faster.@param hashIntoTypedArrayto write the hash into. Faster than creating a new one each time): string;Run the hash over the given data
@param inputstring,Uint8Array, orArrayBufferto hash.Uint8ArrayorArrayBufferis faster.@param encodingDigestEncodingto return the hash in