Hi,
I would like to hear opinion on my problem from those who
have been working on Java.
I am working on a small Java library to be used by a
number of products in my compay. The library contains bit
sensitive code that we don't want everyone, especially
hackers, to look into. We have had equivalent C++
version and I just finished Java port. Now someone just
told me that Java programs are easy to reverse engineer
because you can easily know class/method/field names and
you can decompile byte codes. His recommendation is to use
JNI wrapper for C++ library!
So the question is if Java programs are easy to reverse
engineer, what is the standard practice to make highly
confidential programs in Java? As far as I checked, there
are obfuscators that mangle class/method/field names. Is
this only thing I can do? Or Java is instinctly not
appropriate for highly confidential code compared to C++?
Thanks!
Masa
Roedy Green - 04 Dec 2003 06:55 GMT
>The library contains bit
>sensitive code that we don't want everyone, especially
>hackers, to look into.
there are many techniques to do psychological war with the pirates.
see http://mindprod.com/jgloss/obfuscator.html
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Ben_ - 04 Dec 2003 10:46 GMT
And with a good decompiler (http://members.fortunecity.com/neshkov/dj.html,
for example), you can see the difference.
Also search the comp.lang.java.programmer newsgroup, there has been
discussions in the past two months about pros & cons of obfuscation.
Juha Laiho - 04 Dec 2003 20:32 GMT
"Masa Hokari" <mhokari@adobe.com> said:
>The library contains bit sensitive code that we don't want everyone,
>especially hackers, to look into.
Are you perhaps resorting to security by obscurity, in a case where
you can't have real security?
So, for a program to be secure, it must be secure even when the source
code is released in public (like code for SSL, PGP, SSH, ...). Security
that relies on keeping the code secret is no security.

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)