These are automatically installed
jparker:crypto-core
.jparker:crypto-cipher-core
.jparker:crypto-md5
.jparker:crypto-padding
.jparker:crypto-mode
.
Inside your project folder run
$ meteor add jparker:crypto-aes
CryptoJS is now available on both the client and server.
encrypted = CryptoJS.AES.encrypt("Message", "Passphrase");
console.log(encrypted.toString());
// 53616c7465645f5fe5b50dc580ac44b9be85d240abc5ff8b66ca327950f4ade5
decrypted = CryptoJS.AES.decrypt(encrypted, "Passphrase");
console.log(decrypted.toString(CryptoJS.enc.Utf8));
// Message
The CryptoJS project lives at https://code.google.com/p/crypto-js/ and the documentation for ciphers, including AES, is at https://code.google.com/p/crypto-js/#Ciphers.
jparker:crypto-md5
jparker:crypto-sha1
jparker:crypto-sha256
jparker:crypto-hmac
jparker:crypto-base64
Based on Scott Mackenzie's work