UNPKG

@sebastianp265/safe-server-side-storage-client

Version:

Library for Confidential Server-Side Message Storage Using the Labyrinth Protocol

9 lines (8 loc) 277 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mac = mac; const hmac_1 = require("@noble/hashes/hmac"); const sha256_1 = require("@noble/hashes/sha256"); function mac(data, key) { return (0, hmac_1.hmac)(sha256_1.sha256, key, data); }