This discussion is archived
1 Reply Latest reply: Oct 8, 2012 5:28 AM by Kayaman RSS

How to protect java program from hotspot sa

919101 Newbie
Currently Being Moderated
I tried several methods(eg. custom classloader„ÄĀjvmti) to protected my java program from decompile. They work well until meeting hotspot sa. "Hotspot sa classdump" is so powerf that it can directly dump class from java process's memory in a non invasive debug mode, which make any protect method useless. Is there any way to protect from "hotspot sa classdump"?
  • 1. Re: How to protect java program from hotspot sa
    Kayaman Guru
    Currently Being Moderated
    There's really no secure way to protect code, in the way that you imagine.
    However, your code is most likely not so important that it matters (if it were important, you would already know that it's impossible to give your code away to someone and protect it at the same time).

    Of course if you provide your software as a service, the code is never executed by the client and he can't decompile it. Of course not all software can be provided as a service.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points