UNPKG

keygentoolshed

Version:

Key generation utilities for cryptographic operations. QUANTUM ENCRYPTION FOLDER UPDATE!!! 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}`);