What is the best way to protect sensitive data in the code?
I was examining the ways of protecting my code from decompiling. There are several good threads here describing obfuscation and code packing as the possible ways of protecting the code. However none of them is ideal, obfuscation doesn't work with reflection when the string method/property names are used. Many people do not recommend to use obfuscation at all. So I currently decided not to go with any of the above. However , I have parts of the code where I need a sort of encryption , for example, a database connection string with an IP, login and password is stored inside the code as simple