Posted By:
Finlay_McWalter
Posted On:
Saturday, June 16, 2001 06:17 PM
Well, you can't really "encrypt" classfiles and still expect them to run (well, I suppose someone could write a ClassLoader that decrypts files as it loads them - but all an attacker would have to do is to decompile that classloader, and they could read your encrypted classfiles).
You can, however, mangle the classfiles in such a way that it's harder to decompile them. A number of tools (called "obfuscators") are available that can do this, including:
- Borland JBuilder
- Jshrink
- Codeshield
- Retroguard
- Jproof
But beware that these tools just make it harder to decompile, not impossible - no binary code format (for whatever language) is ever particularly hard to reverse engineer.