File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes How do I hide my code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic

How do I hide my code?

Malith Yapa
Ranch Hand

Joined: Jan 17, 2007
Posts: 45
Hi everyone,

I wrote an encryption class to use in my database application and it works fine. But the thing is anyone can extract the class file from my jar and use it to dycrypt what i encrypted as they like. Or they can decompile the file catch the encryption method. Have you got any idea how to overcome this problem..

A friend of mine suggested using native libraries and compiling my file to an .exe But neither him or I got an idea on how to do it..

Thanks for your time..
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Please do not post the same question to multiple forums. Let's continue the discussion in this duplicate thread, where you have an answer already.
I agree. Here's the link:
subject: How do I hide my code?
It's not a secret anymore!