String encryption is a technique which encrypts every string in the assembly. It is always turned on by default.
However in some situations you may prefer to turn this feature off. In order to do that you can use the instructions below.
Instructions on disabling string encryption
- Open obfuscatable project inside the IDE
-
Add new source file to the project and
call it
ObfuscationSettings.cs
(for C#) orObfuscationSettings.vb
(for Visual Basic .NET). You may prefer to use another name instead ofObfuscationSettings.cs
orObfuscationSettings.vb
-
Fill
ObfuscationSettings.cs
with the following content (C#):using System; using System.Reflection; [assembly: Obfuscation(Feature = "string encryption", Exclude = true)]
For Visual Basic .NET, fill
ObfuscationSettings.vb
with the following content:Imports System Imports System.Reflection <Assembly: Obfuscation(Feature:="string encryption", Exclude:=True)>
Note | |
---|---|
Please note that string encryption can be controlled at the assembly level only. For example, it is impossible to disable string encryption for some specific class or method; it is possible to do this just for a whole assembly. |