This feature is still in alpha stage, and only supports JavaSE App now.
There is a classname-encoder[.exe] in the Protecotor4J folder, that’s the tool performing ClassName Encryption. In order to run this tool, we need a configuration file first.
The template of the configuration is in the task-templates folder, the filename is classname-encryption.yml
# the emaill address of your account
This feature is just valid for licensed user now, you need to fill your email address and the password in the configuration file.
jarsPath field is an array, which you could specify one or multi jar files that need to be processed.
In this field, you can specify the classes that need to encrypt name. It can be a full class name, or wildcard- case ones, just like:
classesToProtect: [vlinx.test.TestClass1, vlinx.test.pack1.*, vlinx.test.pack1.**]
*means all the classes in the package, but exclude the classes in the sub packages.
**means all the classes in the package including the classes in the sub packages.
If this value is true, the classes in the inner jars will be processed too.
In this field, you can specify the classes to exclude from encryption, the format is the same as classesToEncrypt field.
If the app is spring-boot app, please set this value to true
Please go to the Protector4J folder, the execute the command below
On Linux or macOS
./classname-encoder -t java -f path-of-task-file
classname-encoder -t java -f path-of-task-file
-t task type
-f task file
You can execute
classname-encoder --help to see the detail arguments.