UNPKG

crypto-keygen-suite

Version:

Key generation utilities for cryptographic operations. YES I RENAMED IT OMG BASES AND PROTOCOLS!!! See its folder for all <3

8 lines (6 loc) 214 B
import crypto from 'crypto'; function generateHMACKey(length = 32) { return crypto.randomBytes(length).toString('hex'); } const hmacKey = generateHMACKey(); console.log(`Generated HMAC Key: ${hmacKey}`);