UNPKG

@sentzunhat/zacatl

Version:

A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.

7 lines 282 B
import { createHmac } from 'crypto'; export const generateHmac = ({ message, secretKey, algorithm = 'sha256', encoding = 'hex', }) => { const hmac = createHmac(algorithm, secretKey); hmac.update(message); return hmac.digest(encoding); }; //# sourceMappingURL=hmac.js.map