Minimalistic nodejs AES-256 implementation.
npm install simple-aes-json --savevar saj = require('simple-aes-json');
// Encryption
saj.encrypt('123456789','passphrase',function(encrypted){
console.log(encrypted)
//{"ct":"z/apIxwSDRmqDlvhmTfhJA==","iv":"f960b8b5722b64b1ea4b09d7c548ffb8","s":"d20cc8ac7b5f31cb"}
});
// Decryption
saj.decrypt(encryptedJSON,'passphrase',function(result){
console.log(result); //'123456789'
});MIT © 2015