AES Salted Encryption helper
Partially inspired by AESCrypt Ruby gem.
npm install --save aescrypt
AESCrypt = require "aescrypt"
keytext = "toomanysecrets"
cleardata = "we have explosive"
{encrypted, salt} = AESCrypt.encryptWithSalt keytext, cleardata
###
encrypted = "nm6Ky1J/L7oBmiCont3hBzMwIf7cThAakcokykg="
salt = "C/GzCUNDSjiotRNei17TfQ=="
###
AESCrypt = require "aescrypt"
encrypted = "nm6Ky1J/L7oBmiCont3hBzMwIf7cThAakcokykg="
salt = "C/GzCUNDSjiotRNei17TfQ=="
decrypted = AESCrypt.decryptWithSalt keytext, salt, encrypted
###
decrypted = "we have explosive"
###
MIT