Skip to content

Resources Protection

Martin Karing edited this page Nov 23, 2019 · 3 revisions

ID: resources
Preset: Normal
Availability: ConfuserEx ConfuserEx 2

This protection encodes and compresses the embedded resources.

Parameters

  • mode: This parameter define the way ConfuserEx encodes the resources. Supported values are:
    • normal: ConfuserEx would use static algorithms with random parameters to encode the resources. (default)
    • dynamic: ConfuserEx would use dynamically generated algorithms to encode the resources.

Example

<protection id="resources">
  <argument name="mode" value="dynamic" />
</protection>

Remarks

The resources are decompressed and decoded upon loading the assembly, so they can be properly accessed. This has an impact on the startup performance when using an assembly with this protection.

If the protection is only used for the sake of the compression and the compressor packer is used as well, this protection should be disabled to avoid the compression to be applied twice.