Skip to content

Crypto

This module handles encryption functions that wrap OpenSSL. It can also be used for random number generation, etc.

Sample

const crypto = require('crypto');
const str = crypto.randomBytes(16).toString('base64').substring(0, 16); // random number generation