SRL Archive - Java Help and Tutorials

Obfuscating .class files


ZaSz

2009-12-08 23:54:21

I wanna know how to obfuscate them so peoplez can't steal my codes!

Method

2009-12-08 23:57:44

If you want people to be able to "steal your codes", don't obfuscate your files. I'm going to guess that you probably made a typo and actually do want to obfuscate your code. In that case, search around for obfuscators. Some popular ones I know of are ZKM and Allatori, but I believe those are not free products. You should be able to find some free ones with a little searching, though.

Do be aware that someone will always be able to reverse engineer your bytecode one way or another, even if it is obfuscated.

R0b0t1

2009-12-09 00:14:09

You can only obfuscate .java files, the bytecode must remain in an interpretable form. Which means it can be decompiled.

Method

2009-12-09 00:22:09

From: R0b0t1
You can only obfuscate .java files, the bytecode must remain in an interpretable form. Which means it can be decompiled.


Things like string constants, the flow of code, member names, and others can still be modified inside the class files to create code that will not compile or make sense when decompiled, though.

R0b0t1

2009-12-09 21:30:06

Exactly, which is still interpretable, but the code to unobfuscate it must exist somewhere.

ZaSz

2009-12-09 22:15:05

I just want to make it next to impossible for people not to steal my code.

Wanted

2009-12-09 22:17:24

From: ZaSz
I just want to make it next to impossible for people not to steal my code.


The only way to do that is by taking legal actions against people

senrath

2009-12-09 23:23:24

From: ZaSz
I just want to make it next to impossible for people not to steal my code.

Can't do that in Java, sorry to say. Java is one of the easiest languages to reverse engineer, really.

Nava2

2009-12-10 00:24:30

Anyone else catching he keeps adding not before steal?

Jokes?

Bobarkinator

2009-12-10 00:35:39

From: Nava2
Anyone else catching he keeps adding not before steal?

Jokes?


Or bad english. I'm gonna go with jokes on this one.

ZaSz

2009-12-10 00:41:03

Or has tons of crap going on and really isn't paying attention to what hes saying. Just typing based on a thought :/

Lol, i must look retarded…. Im in high school, and I'm in U.S.A…. I'm also tired right now.

senrath

2009-12-10 03:07:11

Well, anyway, if you really want to make it hard for someone to "steal your codes", then you should look into using a language other than Java.

super_

2009-12-10 08:13:33

From: R0b0t1
Exactly, which is still interpretable, but the code to unobfuscate it must exist somewhere.


… class files can easily be obfuscated; what do you think jagex does? the bytecode is fucked with to complexify it and confuse jad and other decompilers into producing nonsense.