Answers for "encryptedfields mongoose-encrypt"

0

encryptedfields mongoose-encrypt

// encrypt age regardless of any other options. name and _id will be left unencrypted
userSchema.plugin(encrypt, { encryptionKey: encKey, signingKey: sigKey, encryptedFields: ['age'] });
Posted by: Guest on November-09-2020
0

encryptedfields mongoose-encrypt

// exclude age from encryption, still encrypt name. _id will also remain unencrypted
userSchema.plugin(encrypt, { encryptionKey: encKey, signingKey: sigKey, excludeFromEncryption: ['age'] });
Posted by: Guest on August-31-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language