Use the Resource Encryption Editor to select the resources that will be encrypted during the protection process.
To open the Resource Encryption Editor, select Resource Encryption in the Config Editor.
Before resources can be encrypted, Resource Encryption must be enabled in Settings by setting Disable Resource Encryption to No.
The Resource Encryption Editor contains a single tab:
| Tab | Purpose |
| Include | Selects the resources to encrypt. |
For information about how Resource Encryption works, see Protect Embedded Resources with Resource Encryption.
Include Tab
The Include tab provides control over which resources are encrypted.
From this tab, you can:
- View the resources contained in the input assembly.
- Select individual resources for encryption.
- Select multiple resources for encryption.
Only selected resources are encrypted during the protection process.
Selecting Resources
To encrypt resources:
- Open the Resource Encryption tab.
- Browse the list of available resources.
- Select the resources you want to encrypt.
- Save the configuration.
- Build the protected application.
During the build process, Dotfuscator encrypts the selected resources and injects the code required to decrypt them at runtime.
Verifying Selected Resources
Before building the application, review the selected resources to ensure that all resources requiring protection have been included.
After protection is complete, verify the encrypted resources in the output assembly using a tool such as ILSpy.
Resource Selection Considerations
Consider encrypting resources that contain:
- Images and media assets
- Configuration data
- Localization resources
- Embedded files
- Other application assets that should not be easily extracted or modified
Resource Encryption supports both embedded resources and satellite resources.