Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/workerd/hash.ts>hmac

A JavaScript extension package for building strong and modern applications.
Latest
function hmac
Re-export
import { hmac } from "https://deno.land/x/ayonli_jsext@v0.9.72/workerd/hash.ts";

Parameters

algorithm: "sha1" | "sha256" | "sha512"
data: DataSource

Returns

Promise<ArrayBuffer>

Parameters

algorithm: "sha1" | "sha256" | "sha512"
data: DataSource
encoding: "hex" | "base64"

Returns

Promise<string>