I am trying to open a connection to MySQL as follows from node.js app using express and angular js front end:
//Connect to mySQL DB var pool = mysql.createPool({
connectionLimit: 100,
host: 'host-url',
user: 'some-username',
password: 'some-password',
database: 'some-db',
port: 3307,
debug: false
});
I want to know how can I encrypt my password in the above .js file where I am trying to open connection to db?
via Shruti Gotmare
No comments:
Post a Comment