Skip to main content
Hmac.prototype.update - crypto - Node documentation
method Hmac.prototype.update

Usage in Deno

import { Hmac } from "node:crypto";
Hmac.prototype.update(data: BinaryLike): Hmac

Updates the Hmac content with the given data, the encoding of which is given in inputEncoding. If encoding is not provided, and the data is a string, an encoding of 'utf8' is enforced. If data is a Buffer, TypedArray, orDataView, then inputEncoding is ignored.

This can be called many times with new data as it is streamed.

Parameters

Return Type

Hmac.prototype.update(
data: string,
inputEncoding: Encoding,
): Hmac

Parameters

data: string
inputEncoding: Encoding

Return Type

Back to top