Page 1 of 1

How to hide/encrypt db connection (usr/pwd) with node.js

Posted: Mon Jun 17, 2019 4:43 am
by rbravoz
I am using report.js with node.js but when the report is displayed in the browser, the user can get hold of the connection credentials (chrome -—> inspect). Can someone point me to how to encode/encrypt the connection string so that the user cannot see it nor change it?

Re: How to hide/encrypt db connection (usr/pwd) with node.js

Posted: Mon Jun 17, 2019 11:42 am
by HighAley
Hello.

You could remove the connection string from the report and put necessary information on the side of the data adapter that you use.
All data adapters are open source. You could change its code for your needs.

Thank you.