UNPKG

keygentoolshed

Version:

Key generation utilities for cryptographic operations. QUANTUM ENCRYPTION FOLDER UPDATE!!! See its folder for all <3

13 lines (11 loc) 363 B
import hkdf from 'js-crypto-hkdf'; import crypto from 'crypto'; const masterSecret = crypto.randomBytes(32); const hash = 'SHA-256'; const length = 32; const info = ''; hkdf.compute(masterSecret, hash, length, info).then((derivedKey) => { console.log('Derived Key:', derivedKey); }).catch(err => { console.error('Error deriving key:', err); });