AxProtector offers the possibility to protect data in form of files and then to use them also in a protected program. Here the data must be encrypted separately using AxProtector.
Data to be protected
The data can be protected in any form as a file. For this purpose, the same of the protect.yaml protection definition from the Encryption section is used. The most important difference is however, that with the data encryption the ProtectionMode has the value Data.
Otherwise, the corresponding file is specified for Input and only LicenseList 0 needs to be described for encryption.
The following protect.yaml protection definition is an example for the encryption of the file test.bin:
ProtectionMode: Data
Licenses:
- Name: cm
Type: CodeMeter
FirmCode: 6000010
ProductCode: 13
FilesToEncrypt:
Input: test.bin
OutputFolder: prot
LicenseLists:
- Id: 0
Licenses:
- cm
Using protected files
In order for encrypted files to be loaded, the project that uses these files must be protected with the appropriate support. This is done in Options as follows:
Options:
FileEncryption: true