Server side collection encryption using Crypto AES and Collection Hook
Please refer to History.md for a summary of recent changes.
Installation:
meteor add escu:encryption
Specify your collection and fields to encrypt.
var TestCollection = new Mongo.Collection('test');
Meteor.startup(function() {
if (Meteor.isServer) {
EncryptCollection(TestCollection, ['field1', 'field2']);
}
});
Specify your collection and fields to decrypt.
Meteor.startup(function() {
if (Meteor.isClient) {
DecryptCollection(TestCollection, ['field1', 'field2']);
}
}
Specify your collection and fields to decrypt.
Encryption.passphrase('passphrase');
Important: Should be defined on both server and client.
- John Edward Escuyos (jeescu)