UNPKG

@azure/cosmos

Version:
7 lines 283 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { createHmac } from "crypto"; export async function hmac(key, message) { return createHmac("sha256", Buffer.from(key, "base64")).update(message).digest("base64"); } //# sourceMappingURL=hmac.js.map