Mongo Data Encryption in Meteorjs

Is it possible to encrypt a specific Mongodb field for a particular collection when inserting a document? And then decrypt it when publishing the collection?

+6
source share
2 answers

I'm not sure if this is redundant for your use case:

Mylar is a Meteor module that supports client-side encryption.

Mylar only stores encrypted data on the server and decrypts data only in users โ€™browsers. [...] Mylar allows the server to search for keywords in encrypted documents, even if the documents are encrypted with different keys. [...] Finally, Mylar ensures that client-side application code is authentic, even if the server is malicious. The results with the prototype Mylar built on top of the Meteor frame are promising.

You did not request the framework, but internal protection is often erroneous.

+5
source

We have published the new planifica: encryption package, which allows you to easily and easily encrypt your client mongo collections! If you follow the same principles as Mylar (in fact, it is based on the document on which Mylar is based), but at the moment it does not support all the functions of Mylars, such as server-side search.
On the other hand, it uses much more advanced and efficient encryption methods to generate keys and encryption, which are more suitable for browsers. In addition, it does not replace or change the meteor core, but instead is a regular package that uses hooks for all automatic decryption.
There is also a blog post to get you started here .

+5
source

Source: https://habr.com/ru/post/977958/


All Articles