How do I protect a jar file from tampering?

Posted on 2006-05-08
Last Modified: 2008-03-03
Is there anyway to encrypt or possibly "lock" a jarfile from tampering, and reading, yet still have it runnable by any supported JVM? I want to protect some of my work before I distribute it and want to know the best way to protect it from tampering, and reading.

Question by:richardsimnett
    LVL 8

    Accepted Solution

    LVL 92

    Assisted Solution

    LVL 30

    Assisted Solution

    Well, you can protect it from reading an obfuscator. But you can't really protect it from getting tampered. People can always make your file corrupt by trying to modify it.
    LVL 14

    Assisted Solution

    well, google these terms:      java + bytecode + "tamper proofing"
    you'll find a lot on how to make your code tamper-resistant

    also have look at this

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    This video teaches viewers about errors in exception handling.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now