Skip to content

Stand-alone encryption package to encrypt/decrypt data with AES using Crypto-JS.

License

Notifications You must be signed in to change notification settings

Altapp/Meteor-AES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor AES

Stand-alone encryption package to encrypt/decrypt data with AES using Crypto-JS. I made this because the existing crypto-aes smart package is broken, and I wanted a single easy to use AES package for my own purposes. This is just the CryptoJS v3.1.2 AES rollup file wrapped into a smart package.

This package does not depend on crypto-base or any other smart packages.

CryptoJS is at https://code.google.com/p/crypto-js/

Installation

$ meteor add altapp:aes

How to use

encrypted = CryptoJS.AES.encrypt('Message', 'Passphrase');
console.log(encrypted.toString());
// U2FsdGVkX18Hpf311+ZPEcnB/e2rP3vSHoACIBv0Lq8=

decrypted = CryptoJS.AES.decrypt(encrypted, 'Passphrase');
console.log(decrypted.toString(CryptoJS.enc.Utf8));
// Message

About

Stand-alone encryption package to encrypt/decrypt data with AES using Crypto-JS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published