📜  encryptedfields mongoose-encrypt - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:29.160000             🧑  作者: Mango

代码示例2
// exclude age from encryption, still encrypt name. _id will also remain unencrypted
userSchema.plugin(encrypt, { encryptionKey: encKey, signingKey: sigKey, excludeFromEncryption: ['age'] });