Skip to content

Instantly share code, notes, and snippets.

View gudatcomputers's full-sized avatar
🏠
Working from home

Jason McKee gudatcomputers

🏠
Working from home
View GitHub Profile
@gudatcomputers
gudatcomputers / AesUtil.js
Created January 19, 2017 20:10 — forked from AndiDittrich/AesUtil.js
Node.js - AES Encryption/Decryption with AES-256-GCM using random Initialization Vector + Salt
/**
* AES Encryption/Decryption with AES-256-GCM using random Initialization Vector + Salt
* @type {exports}
*/
// load the build-in crypto functions
var crypto = require('crypto');
// encrypt/decrypt functions
module.exports = {