-
-
Notifications
You must be signed in to change notification settings - Fork 368
Reference Proxy Protection
ID: ref proxy
Preset: Normal
Availability:
This protection encodes and hides references to type/method/fields.
-
mode
: This parameter define the way ConfuserEx hide the references. Supported values are:-
mild
: ConfuserEx would add an indirection method as proxy. (default) -
strong
: ConfuserEx would add a dynamic method delegate as proxy.
-
-
encoding
: This parameter define the way ConfuserEx encodes the method references. These encoding modes are only used for thestrong
mode
. Supported values are:-
normal
: ConfuserEx would use static algorithms with random parameters to encode the references. (default) -
expression
: ConfuserEx would use dynamically generated expressions to encode the references. -
x86
: ConfuserEx would use dynamically generated native x86 expressions to encode the references. This mode will disable the "AnyCPU" mode of an assembly.
(Produces unverifiable modules)
-
-
internal
: This parameter is a boolean value, indicates whether ConfuserEx should also hide internal references.-
true
: Protect calls to members inside the same assembly. -
false
: Only protect calls to members in other assemblies. (default)
-
-
typeErasure
: This parameter is a boolean value, indicates whether ConfuserEx should hide the types of method parameters.-
true
: Parameters of the proxy methods are declared asSystem.Object
if possible. -
false
: Parameters of the proxy methods are declared with the real types. (default)
-
-
depth
: This parameter define how deep is the generated expression ifencoding
is set toexpression
orx86
. Default is 3. -
initCount
: This parameter define how many delegate initializer should be added ifmode
is set tostrong
. Default is 16.
<protection id="ref proxy">
<argument name="mode" value="strong" />
<argument name="encoding" value="x86" />
<argument name="internal" value="false" />
<argument name="typeErasure" value="false" />
<argument name="depth" value="4" />
<argument name="initCount" value="32" />
</protection>