andrea-magni / MARS

MARS-Curiosity Delphi REST Library
Mozilla Public License 2.0
367 stars 112 forks source link

INI file - reading encrypt database password #151

Open ertankucukoglu opened 1 month ago

ertankucukoglu commented 1 month ago

Hello,

There is a specific use case for that I need to install a server on each select customer PC. There MARS will be running as a server and talking to a payment system provider.

I am not willing to make the database password and even database user name readable in INI file and looking for a way to decrypt only specific INI parameters.

Is that possible?

Thanks & Regards, Ertan

andrea-magni commented 1 week ago

Hi @ertankucukoglu, yes it is possible. I've updated the FireDAC Basic demo to showcase how to modify configuration parameters before they get used in the MARS engine.

https://github.com/andrea-magni/MARS/blob/847684b53398cd9f4f5248815c9ce812b86bf1c8/Demos/FireDAC%20Basic/Server.Forms.Main.pas#L81

Sincerely,

Andrea