Results 1 to 2 of 2
  1. #1
    bonesnrobes is offline Member
    Join Date
    Jun 2012
    Rep Power

    Question Question about encryption.

    Hello everyone, I've been reading up on some things, and I recall someone mentioning that they encrypted a jar file so it could not be opened in winrar.
    I just have a few questions on that.
    1. How exactly would you encrypt a jar?
    2. What are the benefits compared to just obfuscating?
    3. By encrypting something you must decrypt it right? So is it actually worth it?

    Sorry if this is the wrong subforum. I wasn't sure where I would put this.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power

    Default Re: Question about encryption.

    jar files are a sort of zip file, so they can always be opened with standard archive software.

    The best you can do - I would of thought - is mangle the contents in some way. Of course the mangled contents still have to be loadable and runnable by the Java runtime. Ages ago I read (probably on Sun's forum) about some commercial software which came as a jar which included a custom class loader that did something tricky with the archive contents to generate the application's classes.

    You have to have a reason to bother, I would have thought. And all the software I've come across seems to have been written by people who don't consider they have such a reason.

Similar Threads

  1. A question about encryption-decryption
    By dksellou in forum New To Java
    Replies: 4
    Last Post: 09-17-2012, 06:27 AM
  2. Encryption
    By dougie1809 in forum New To Java
    Replies: 4
    Last Post: 01-30-2012, 10:53 PM
  3. AES encryption
    By syst3mboot in forum Advanced Java
    Replies: 0
    Last Post: 09-05-2011, 01:52 AM
  4. How to encryption?
    By JavaCy in forum Advanced Java
    Replies: 1
    Last Post: 09-26-2010, 08:49 PM
  5. Aes Encryption
    By rohitpatidar3 in forum Advanced Java
    Replies: 7
    Last Post: 04-12-2010, 04:16 AM

Posting Permissions

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