Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.78 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.78 KB

AES algorithm from CryptoJS.

Build Status

Dependency

These are automatically installed

Install

Inside your project folder run

$ meteor add jparker:crypto-aes

CryptoJS is now available on both the client and server.

Usage

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

See also

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.

Related packages

Credits

Based on Scott Mackenzie's work