Hi guys,

We have some sensitive information in a Visual C#.NET app (an app that needs to be distributed to end-users). Examples of this information would be a connection string for a MySQL database on our servers, and encryption keys that the program uses to decrypt some datafiles.

When the program is compiled, even using something as simple as .NET Reflector to "decompile" it exposes all this information. Well, it obviously exposes EVERYTHING in the source code, but that's .NET for you. Problem remains, they can see the username/password for the MySQL database, the key to decrypt the license files, hell - even the method that performs the decryption.

Obfuscation won't work in this case, because no matter how unreadable you make the source code, those strings are easy to identify.

Anyone have any ideas?

7 Years
Discussion Span
Last Post by reanopp

Arrange to distribute the sensitive information by another channel to known individuals at each client site.


That's unfortunately not an option, since most of the targeted end-users (it's a commercial product) wouldn't know what an encryption key or db connection string even is.


I rather see this as an opportunity to find out how other people protect certain pieces of information inside their source code :P

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.