I have wpf application which is going to use wcf service library. so what is the ideal place to keep connection string( I meant to say wether its wpf project config or wcf project config? and how should i declare it?
Asked
Active
Viewed 201 times
1 Answers
1
If you want to hard code sensitive information about service address on your code use some obfuscation tool like SmartAssembly and use string encryption feature. If you want to have this information on app.config file or registry you can use custom encryption\decryption to protect them.
Update:
For an example of code refer to: Encrypting & Decrypting a String in C#
-
I am gone use it in app.config. How to use custom encryption\decryption in app.config file? – Lina Apr 12 '17 at 17:34