Skip to main content

String Obfuscation

Assemblies compiled by the .NET framework store all the literal strings used by your code in one place called the string heap. This makes it easy for a hacker to review all string literals and find key phrases like “Invalid License” and, by following the code references to such strings, find the methods that enforce licensing or reveal important information such as database connection strings and passwords.

Agile.NET prevents access to the information captured by literal strings in your software by obfuscating them and placing them in a secure storage. When needed, the strings are decrypted in memory.

Obfuscating Const Strings

Agile.NET can only obfuscate literal string values. It does not obfuscate const strings, because they are not stored in the string heap. If you want to obfuscate a string declared as const, change its declaration to static readonly string.

Using String Obfuscation

To enable string obfuscation:

string obfuscation

  • Select the String Obfuscation tab.
  • Select I want to hide sensitive data such as….