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

Stimulsoft Reports.JS discussion
Post Reply
rbravoz
Posts: 3
Joined: Sun Jun 16, 2019 1:09 am

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

Post 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?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post 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.
Post Reply