www.webdeveloper.com
Results 1 to 10 of 10

Thread: How to wrap a JAR file to a binary in linux?

  1. #1
    Join Date
    Aug 2006
    Location
    Monterrey, Mexico
    Posts
    162

    How to wrap a JAR file to a binary in linux?

    Hi,

    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?

  2. #2
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    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.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  3. #3
    Join Date
    Aug 2006
    Location
    Monterrey, Mexico
    Posts
    162
    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?

  4. #4
    Join Date
    Jan 2009
    Posts
    3,346
    A JAR is already compiled code...you aren't including the .java files in the JAR are you?

  5. #5
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    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/1...rp-source-code
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  6. #6
    Join Date
    Aug 2006
    Location
    Monterrey, Mexico
    Posts
    162
    .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?

  7. #7
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    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.
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  8. #8
    Join Date
    Aug 2006
    Location
    Monterrey, Mexico
    Posts
    162
    Quote Originally Posted by svidgen View Post
    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

  9. #9
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    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?
    Jon Wire

    thepointless.com | rounded corner generator

    I agree with Apple. Flash is just terrible.

    Use CODE tags!

  10. #10
    Join Date
    Aug 2006
    Location
    Monterrey, Mexico
    Posts
    162
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles