UNPKG

283 BJavaScriptView Raw
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3import { createHmac } from "crypto";
4export async function hmac(key, message) {
5 return createHmac("sha256", Buffer.from(key, "base64")).update(message).digest("base64");
6}
7//# sourceMappingURL=hmac.js.map
\No newline at end of file