UNPKG

@azure/data-tables

Version:
8 lines 361 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { createHmac } from "node:crypto"; export function computeHMACSHA256(stringToSign, accountKey) { const key = Buffer.from(accountKey, "base64"); return createHmac("sha256", key).update(stringToSign, "utf8").digest("base64"); } //# sourceMappingURL=computeHMACSHA256.js.map