Use the String Encryption Editor to configure which parts of an application are included in the String Encryption process.
To open the String Encryption Editor, select String Encryption in the Config Editor.
The String Encryption Editor contains a single tab:
| Tab | Purpose |
| Include | Includes assemblies, namespaces, types, methods, or other code elements for String Encryption. |
For information about how String Encryption works, see Protect Sensitive Strings with String Encryption.
Include Tab
The Include tab provides granular control over which code elements are included in String Encryption.
From this tab, you can:
- Include specific items for String Encryption.
- Create custom inclusion rules.
- Preview the effects of inclusion rules.
- Disable String Encryption by removing all inclusions.
Including Specific Code Elements
To include code elements for String Encryption:
- Browse the application tree.
- Locate the assembly, namespace, type, or member you want to include.
- Select the item for inclusion.
- Save the configuration.
String Encryption can be applied to individual code elements or larger portions of an application, depending on your protection requirements.
Including an Entire Assembly
To encrypt all eligible strings within an assembly:
- Expand the application tree.
- Locate the assembly.
- Select the assembly node.
Selecting an assembly automatically includes all child items beneath that assembly. This is the most common starting point when enabling String Encryption.
Creating Custom Inclusion Rules
Custom inclusion rules allow multiple code elements to be selected using a single rule.
Use custom rules when multiple assemblies, namespaces, types, or members share common characteristics and should be included together.
For information about creating and managing rules, see The Rules Editor.
Previewing Inclusions
The application tree provides a visual preview of included code elements.
Included items are shaded within the tree view, allowing you to verify the impact of your inclusion rules before protecting the application.
You can preview:
| Preview Type | Description |
| All Rules | Displays the cumulative effect of all configured inclusion rules. |
| Selected Rule | Displays the effect of a specific inclusion rule. |
Preview inclusions whenever you create or modify rules to verify that the intended code elements are selected.