Skip to content

p-j/meteor-crypto-aes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

AES Meteor Package for CryptoJS, standard secure algorithms

Resources

Stars

Watchers

Forks

Packages

No packages published