UNPKG

crypto-keygen-suite

Version:

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

9 lines (7 loc) 239 B
import crypto from 'crypto'; function generateChaCha20Key() { const key = crypto.randomBytes(32); return key.toString('hex'); } const chacha20Key = generateChaCha20Key(); console.log(`Generated ChaCha20 Key: ${chacha20Key}`);