/Akselerasi-FE12

Playground Week 6 Sesi 2 Materi FE 12 Node Crypto

Primary LanguageJavaScript

Akselerasi-FE12

Playground Week 6 Sesi 2 Materi FE 12 Node Crypto

Documentation for Key Length createChiperiv

const ENC_KEY = crypto.randomBytes(16); // set random encryption key
const IV = crypto.randomBytes(16); // set random initialisation vector

let cipher = crypto.createCipheriv("aes-128-cbc", ENC_KEY, IV);
image