How to Encrypt / Decrypt with AES in Node.JS
Easy as pie!
var crypto = require('crypto');
var AES128 = "aes128";
var AES192 = "aes192";
var AES256 = "aes256";
var password = 'Austin';
var plainText = 'Texas to the bone!';
// ------------------------------------------------
var cipher = crypto.createCipher(AES128, password);
var decipher = crypto.createDecipher(AES128, password);
console.log('AES-128:');
// Encrypting with AES128
var encText = cipher.update(