Results 1 to 11 of 11
Like Tree3Likes
  • 1 Post By DarrylBurke
  • 2 Post By Tolls

Thread: Protect jar file from reverse Engineering

  1. #1
    arijit158 is offline Member
    Join Date
    Jan 2012
    Posts
    6
    Rep Power
    0

    Default Protect jar file from reverse Engineering

    I had made a jar file in java.But jar can be easily de compiled . Please suggest me so that I can protect the jar from reverse engineering.

    Thanking you.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,455
    Rep Power
    20

    Default Re: Protect jar file from reverse Engineering

    Delete all copies in existence, then it can't be reverse engineered.

    db
    Tolls likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    arijit158 is offline Member
    Join Date
    Jan 2012
    Posts
    6
    Rep Power
    0

    Default Re: Protect jar file from reverse Engineering

    "Delete all copies in existence" this statement is not cleared.
    Please clear the concept.

    Thanking you

  4. #4
    bams is offline Member
    Join Date
    Jan 2012
    Posts
    8
    Rep Power
    0

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,173
    Rep Power
    20

    Default Re: Protect jar file from reverse Engineering

    None of which protect a jar file from reverse engineering...apart from Darryl's suggestion of deleting everything.

  6. #6
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: Protect jar file from reverse Engineering

    If it can be run, it can be reverse engineered.
    Get in the habit of using standard Java naming conventions!

  7. #7
    vextorspace is offline Member
    Join Date
    Jan 2012
    Location
    Sydney, NS
    Posts
    2
    Rep Power
    0

    Default Re: Protect jar file from reverse Engineering

    I'm sure what arijit158 is referring to is actually the ease with which Jar files are de-compiled into readable source code. Something that would help would be ProGuard which helps obfuscate your sourcecode when it is de-compiled.

  8. #8
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: Protect jar file from reverse Engineering

    "Obfuscators such as ProGuard can remove the debugging information and replace all names by meaningless character sequences, making it much harder to reverse-engineer the code." Well, yeah. But that's only a minor inconvenience if someone really wants to reverse engineer the program. The refactoring tools in Eclipse would make quick work of renaming everything as you figure out what it is.

    My favorite technique for obfuscating code that way is to rename everything not with meaningless strings, but with words that have powerful emotional connotations:

    Java Code:
    Holocaust god = new MarilynMonroe();
    But still, it can be decompiled and refactored. There is nothing you can do about that.
    Get in the habit of using standard Java naming conventions!

  9. #9
    vextorspace is offline Member
    Join Date
    Jan 2012
    Location
    Sydney, NS
    Posts
    2
    Rep Power
    0

    Default Re: Protect jar file from reverse Engineering

    Yes, but you have at least made it a lot of work, especially if your application is large. Whereas without something like that, it is simple to take someone's code and use it yourself without permission.

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,173
    Rep Power
    20

    Default Re: Protect jar file from reverse Engineering

    Of course, this all assumes your code is worth nicking in the first place.
    That is often, contrary to what the developer who wrote it may think, rarely the case.
    kjkrum and DarrylBurke like this.

  11. #11
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Default Re: Protect jar file from reverse Engineering

    The one way I like but still can`t setup is Eclipse + GJC using Java native libraries, using GCJ Builder plugin for Eclipse and make your app native code like. Decompiling then is made only with hexeditors ( C/C++ like ).

Similar Threads

  1. Reverse Engineering in Netbeans
    By Silvia Todorof in forum New To Java
    Replies: 13
    Last Post: 12-24-2011, 12:26 AM
  2. reverse engineering
    By kulangotski in forum Advanced Java
    Replies: 9
    Last Post: 12-11-2011, 02:41 PM
  3. Protect Jar File
    By patriotsfan in forum Advanced Java
    Replies: 1
    Last Post: 11-29-2011, 09:59 PM
  4. Reverse Engineering in Eclipse
    By novice in forum New To Java
    Replies: 2
    Last Post: 05-31-2010, 06:17 PM
  5. Replies: 1
    Last Post: 03-26-2008, 12:41 PM

Posting Permissions

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