3
Answers

Secure connection string in App.config C#

Samio

Samio

13y
11.4k
1
Hi,

How is it possible to secure connection string in a deployed Windows Forms application ?

Thank you
Answers (3)
0
Gohil Jayendrasinh
NA 5k 2.8m 13y

hi

To protect the connection string, add the System.Configuration reference, add an Installer Class to the project and then override the Install Method

http://www.codeproject.com/Articles/15392/Implementing-Protected-Configuration-With-Windows

http://www.codeproject.com/Articles/18558/Encrypting-windows-application-connection-strings

if it's helpful to you then please check Accepted Asnwers

Thanks



0
Jignesh Trivedi
NA 61k 14.2m 13y
Hi Samio,

I think you can not do anying about secure connection string in a deployed windows form application.

All solution might change your code.

so you must redeployed it.

Hope this help.
0
Satyapriya Nayak
NA 53k 8m 13y
Hi Samio,

Please refer the below links

http://www.codeproject.com/Articles/118532/Saving-Connection-Strings-to-app-config

http://msdn.microsoft.com/en-us/library/ff647398.aspx


Thanks