How to encrypt a .jar file
问题 I'm working in a project where we need to encrypt the .jar file so no one can access to the .class files which inside the jar file.... is there any java coding which can help me to encrypt the .jar file ? 回答1: Even if you encrypt the jar file, it must be decrypted before the JVM is able to run it, so you'll need another jar file containing classes that decrypt and loads in the JVM. Since this second jar file cannot be itself encrypted, a malicious user wanting to see you class files, can