mongoose-field-encryption
mongoose-field-encryption copied to clipboard
A simple symmetric encryption plugin for individual fields. Dependency free, only mongoose peer dependency.
hello. First of all, I am not good at English. If you don't understand, please tell me again. While using the plugin, I found an issue where field values were...
Is it possible to use a RegEx value to search case insensitive through encrypted fields?
Bumps [parse-url](https://github.com/IonicaBizau/parse-url) from 6.0.0 to 6.0.2. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
We would like to save images to MongoDB and want to encrypt the binary data field. And we are aware that the MongoDB object size limit is around 16MB ([Stackoverflow...
There is any way to make a query with select()? When i use the select() all the fields are coming encrypted. This is what I'm trying to do. `User.findById(user.id) .select('_id...
Hello, I am trying to use your package to encrypt a specific field of my schema on a collection named `Customers`. However, upon first run, it got an error: `TypeError:...
Hello, Firstly I want to thank you for this nice library. At the moment, library supports only outer level field encryption like in the PostSchema example you added. It can...
I have thats schemas: ``` const schema1 = new mongoose.Schema({ field1: String, field2: String }); schema1.plugin(mongooseFieldEncryption, { fields: ['field1', 'field2'], secret: process.env.SECRET, saltGenerator: (secret) => secret.slice(0, 16) }); const schema2...
Hi again 😊 I also had to use .lean functionality in our business as we have over 250 queries running throughout our projects and it would take much more time...
Upon our needs for our business, I've made a workaround on .select with a pre-hook. This hook automatically adds __enc_key and __enc_key_d for relevant fieldsToEncrypt. Note: only works on top-level...