UNPKG

privacy.com

Version:

Wrapper for the Privacy.com API using Axios and TypeScript

5 lines (3 loc) 190 B
import * as crypto from "crypto"; export const createHmac = (apiKey: string, data: object): string => crypto.createHmac("sha256", apiKey).update(JSON.stringify(data)).digest("base64");