Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose encrypt database using mongoose encrypt package

var secret = process.env.SOME_LONG_UNGUESSABLE_STRING;
userSchema.plugin(encrypt, { secret: secret });
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #mongoose #encrypt #database #mongoose #encrypt #package
ADD COMMENT
Topic
Name
4+7 =