Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose encrypt database using mongoose encryption 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 #encryption #package
ADD COMMENT
Topic
Name
5+8 =