I have a jar with some very important code that i wish is never looked at.
Is there someway to wrap this in a .bin or something similar for it to be executed in linux?
Sure. But any code that needs to be executed ultimately needs to be read. And while you can store it up in an encrypted and/or compiled form, it ultimately needs to be sensible enough to execute.
I understand it may not be 100% unreachable, but if theres an option to at least hide it, something equivalent to an exe in windows maybe?
A JAR is already compiled code...you aren't including the .java files in the JAR are you?
Don't kid yourself. EXE's are de-compilable. Not necessarily into the original source, but into perfectly readable VS projects: http://stackoverflow.com/questions/179741/how-do-i-decompile-a-net-exe-into-readable-c-sharp-source-code
.class files are way too easy to decompile.
Ok, well since i have no better ideas, i think this would be the way to go for now.
Do you know a way to wrap a jar into a .bin or something similar?
Encrypt the jar and write a quick c app that decrypts the jar and pipes the result through the java -jar, assuming it executes STDIN.
svidgen;1202830 wrote:Encrypt the jar and write a quick c app that decrypts the jar and pipes the result through the java -jar, assuming it executes STDIN.
thanks, i'll look into that
I'll reiterate though: Anything sitting on a user's machine is ultimately readable by the user through some amount of effort.
Dare I ask what's so important that it never be looked at?
I understand that, i really do, but i don't have options.
The problem is there is an ecryption key written within the code itself, and is supposed to be top secret. I don't know why they decided it be like this, but it's not up to me.