I work with C# WPF ClickOnce-Installer. My target is to hide the connection-strings to the user.
I found a possibility to encrypt the connection-strings in app.config while starting the application(ref). Problimatically it doesn't encrypt the connection-parameters at the installer-directory where the application gets updates from. This file is called appname.exe.config.deploy and contains the password in plaintext. So if the user knows where the updates come from, he can just read the connection-strings...
So my idea was just to use an obufscation-method to obfuscate only the connection-strings before deployment. Are there any good methods for this way so the user cant easily refactor the connection-string?