prevent jar file from extracting

2k views Asked by At

I don't want anyone extract my.jar file. I so obfuscated my code in my.jar but I want anyone can't extract it . I also know Jar_Signing don't help me. how?

2

There are 2 answers

7
dty On

Not possible. If nobody could extract it, how would the JVM be able to get the class files out?

0
Princekin On

You could try to rename the classes with \x0 as prefix and corrupt the CRC32 of your classes. CRC32 isnt getting checked by the jvm but once you try to extract you jar with standard tools it will prevent the extraction.