Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>Encrypt all the .class files so that no one can decompile it. How can I encrypt it?</p> </blockquote> <p>You can't. If no one can decompile it, how do you expect the target JVM to?</p> <blockquote> <p>After encryption I want to obfuscate that code to add extra safety. How can I do that?</p> <p>I want to add some "serial-key" functionality so that the software works only after registering it with the key provided by me. This is very important so as to prevent multi-user usage of my software. How can I add that key functionality and how can I generate keys. And how can I restrict that software to work only on a single computer.</p> </blockquote> <p>There are a couple of ways to do this but a simple one is with public key cryptography:</p> <ul> <li>Your software generates a random request ID or a request ID based on the machine attributes and your user submits this to you.</li> <li>You sign the request ID with your private key and send it back to the user.</li> <li>The user provides the signed request ID to the software which validates that it was signed by you.</li> </ul> <blockquote> <p>The jar file can be unzipped and the .class file can be seen. Is there any way to wrap jar file into something so that no one can unzip that file.</p> </blockquote> <p>No</p> <blockquote> <p>I don't want to tell the client to first install java to run my application. So is there any way by which if anyone installs my software, the java automatically gets installed on his/her computer without informing him that java is being downloaded to his computer. If it is possible, then Is it legal to use Java software in this way.</p> </blockquote> <p>Try building an <a href="http://nsis.sourceforge.net/Main_Page" rel="nofollow noreferrer">NSIS</a> installer for your application that detects/installs Java and your program.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload