📅  最后修改于: 2022-03-11 15:02:29.160000             🧑  作者: Mango
// exclude age from encryption, still encrypt name. _id will also remain unencrypted
userSchema.plugin(encrypt, { encryptionKey: encKey, signingKey: sigKey, excludeFromEncryption: ['age'] });