Giter Club home page Giter Club logo

mongoose-advanced-encryption's People

Contributors

dependabot[bot] avatar jsdream avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mongoose-advanced-encryption's Issues

Array object data not encrypted

This plugin has been very useful for my project. One thing I am struggling with currently is that I am trying to encrypt properties of an array but they do not seem to be encrypted at all.

Schema definition is as so - there are many more properties I would like to encrypt inside the array but I'll demonstrate one:

timesheets: [{
    ordinary_total: {
        type: String,
        trim: true,
        required: 'Please fill in <strong>Ordinary Total</strong>!',
        encrypt: true
    }
}]

This results in unencrypted normal data in the array for "ordinary_total". However root level Schema properties are encrypted without issue like so:

ordinary_total: {
    type: String,
    trim: true,
    required: 'Please fill in <strong>Ordinary Total</strong>!',
    encrypt: true
}

Is this because the encryption only works on String schema types? So it doesn't work as it is a String inside an Array?

Any guidance would be great.
Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.