Module

std/node/crypto.ts>Hmac

Deno standard library
Go to Latest
class Hmac
extends Transform
import { Hmac } from "https://dotland.deno.dev/std@0.145.0/node/crypto.ts";

Constructors

new
Hmac(
hmac: string,
_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
import Hmac
import { Hmac } from "https://dotland.deno.dev/std@0.145.0/node/crypto.ts";