As we all know, JavaProgramAfter the JAR file is generated, the original file can be decompiled using special software, and the restoration program is close to 98%.
Decompilation tools include:
- Jad
- Xjad
- Front end plus
- Mdejava
- Decafe pro
- Cavaj Java decompiler
- DJ Java decompiler
- NMI's Java class Viewer
- Domestic JavaSource codeDecompilation expert
- Most decompilation tools use the Core Engine of Jad.
Currently, Java encryption mostly uses obfuscation.CodeEncryption method, although it can initially protect the code, but it cannot provide complete protection
After the Java program is generated, the file is saved in the form of an intermediate bytecode and cannot be used as a common Win32 Program to Protect the Code through shelling. This raises a question, how to protect your own code from decompiling.
When the jar program is running, the started process is Java-jar test. jar, through the Java core program java.exe to load test. jar to the memory for bytecode conversion, to convert the bytecode to Win32 executable code run.
First, test. the jar file cannot be modified. Otherwise, the Java interpreter cannot correctly interpret the intermediate code. Here we want to encrypt the part and add our own layer of intermediate bytecode conversion, then, you can submit it to the Java interpreter for execution to achieve encryption, and the encryption intensity is specified by yourself. This encryption process is complete.