mongoose-field-encryption icon indicating copy to clipboard operation
mongoose-field-encryption copied to clipboard

A simple symmetric encryption plugin for individual fields. Dependency free, only mongoose peer dependency.

Results 21 mongoose-field-encryption issues
Sort by recently updated
recently updated
newest added

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...

more detail required
test required

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 [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=parse-url&package-manager=npm_and_yarn&previous-version=6.0.0&new-version=6.0.2)](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...

dependencies

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...

question
answered

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...

question
answered

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:...

question
more detail required

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...

enhancement
answered

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...

question
more detail required
answered

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...

test required

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...

test required