Skip to main content
Module

std/node/crypto.ts>Hmac

Deno standard library
Go to Latest
class Hmac
extends Transform
Re-export
import { Hmac } from "https://deno.land/std@0.143.0/node/crypto.ts";

Constructors

new
Hmac(
hmac: string,
_key: BinaryLike | KeyObject,
_options?: TransformOptions,
)

Methods

digest(): Buffer
digest(encoding: BinaryToTextEncoding): string
digest(_encoding?: BinaryToTextEncoding): Buffer | string
update(data: BinaryLike): this
update(data: string, inputEncoding: Encoding): this
update(_data: BinaryLike, _inputEncoding?: Encoding): this