UNPKG

@azure/eventgrid

Version:

An isomorphic client library for the Azure Event Grid service.

11 lines 381 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { createHmac } from "node:crypto"; /** * @internal */ export async function sha256Hmac(secret, stringToSign) { const decodedSecret = Buffer.from(secret, "base64"); return createHmac("sha256", decodedSecret).update(stringToSign).digest("base64"); } //# sourceMappingURL=cryptoHelpers.js.map