andariel
Dec 16 2003, 01:57 PM
as you know java class files are easily decompiled. how can i stop it ?
SkyRaVeR
Dec 16 2003, 02:28 PM
Hmm - you can't stop this as far as I know.
It's because they're not compiled at all - just precompiled... This precompiling is just some syntax check stuff - real compiling is done on the users machine.
woodpecker_sjtu
Dec 16 2003, 02:33 PM
haha.....you cant
ComSec
Dec 16 2003, 03:18 PM
mg20170
Dec 16 2003, 07:48 PM
SkyRaVeR is right, but to some point. It is possible to change the code in such a way, that it is almost impossible to decompile a program. To do this use special programs called obfuscators. They use several tricks:
- if you have a class called MyCollection, everyone knows what is the purpose of it, what about changing its name to "sZ_98gcd987"? Or better: to "for" (not possible in Java but possible in the precompiled code)?
- obfuscator adds some parts of the code which make it difficult to understand the meanin
- it also adds some parts of the unnecessary code which do not have impact on performance
I hope you've got the point. Try to search for obfuscators.
The same thing concerns C# and other .NET languages.
sub0
Dec 16 2003, 10:51 PM
If you compress a executable with the upx.exe program, it seems to be undecompilable (hmm, strange word

)
ComSec
Dec 16 2003, 10:58 PM
wicked put me on to upx to compress some programs i made in VB... and i did notice using a VB decompiler that it would not recognise the packed program
good point...cheers
Mr_X
Dec 17 2003, 12:15 AM
sub0, upx don't work with java precompiled file. Only because java doesn't generate exe and fileExtension is .class
B3T4
Dec 17 2003, 06:07 PM
for java i personally think it aint possible....
as far as packing with upx...simply unpack it and decompile it
Deadlocked
Dec 18 2003, 03:17 AM
| QUOTE (andariel @ Dec 16 2003, 01:57 PM) |
as you know java class files are easily decompiled. how can i stop it ? |
Java is not compiled, its interpreted... ;P
PD: you can use C++ and use proxy classes if you want to share your class but not your class codes
andariel
Jan 12 2004, 05:11 PM
have you ever tried decompiling a famous programs classes like anfi ? they can't be decompiled and if they are decompiled not all of the code will be available.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.