In my application I use a config file to store the database connection details. How can I use an encrypted password and later decrypt it while making a connection ?
config.mongodb = {
connectionString: '',
server: 'localhost',
database:'db',
user:'user',
password:'password'
};