Another Implementation Method of JAVA Program Encryption

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.