UNPKG

crypto-keygen-suite

Version:

Key generation utilities for cryptographic operations. YES I RENAMED IT. SIX STATE PROTOCOL!!! See its folder for all <3

8 lines (6 loc) 215 B
import crypto from 'crypto'; function generateAESKey(keyLength = 32) { return crypto.randomBytes(keyLength); } const aesKey = generateAESKey(); console.log('Generated AES Key:', aesKey.toString('hex'));