Forums Register Login

Lock on Bytecode

+Pie Number of slices to send: Send
Hi..
My be this is silly to think "like lock on byte code"..but It may have its own advantages like no one can decompile the class file and get biz logic inside that..
I want to deliver my product to my client and I dont want let him know or modify the business logics used inside the code...Is there any way to protect the byte code from decompiling..

please let me know..

RaghuNath
[ July 20, 2006: Message edited by: RaghuNath Nandyala ]
+Pie Number of slices to send: Send
One option is to make the code very difficult to read -- to the point of breaking the decompiler.

Just google for "Java Obfuscator". There are a few products that will munge the java bytecodes in a fashion that confuses decompilers.

Henry
+Pie Number of slices to send: Send
You could consider a ClassLoader that decrypts classes on loading. The Jars would contain classes encrypted before they were added to the Jars. Therefore, they wouldn't decompile with an ordinary decompiler.

This makes it harder for people to look at your bytecode, as they've either got to look at the code in-memory while executing (you can make this harder by preventing attachment of an ordinary debugger) or break the encryption.

Have no illusions that this will stop a smart, determined cracker, but it should stop a dumb or lazy one.

For hopefully-obvious reasons, I'm not posting any code, but you might like to consider this approach. It's not so very hard.
+Pie Number of slices to send: Send
Thanks Peter Chase and Henry Wong.

Your information is very useful for me.

I hope JVM itself will suport encrypted classes in future versions.

RaghuNath.
My pie came with a little toothpic holding up this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 627 times.
Similar Threads
error-page with error-code?
Working with files in EJB
Libs inside ear or jar?
B&S: Locking
How to Obtain Lock using Hibernate Criteria API
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:21:47.