I want a java applet in a html page but the source code can’t be visible is this possible with a custom classloader?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could create a custom ClassLoader that decodes classes from random bytes. However, this ClassLoader itself is a class and needs to be loaded in a default way for JVM to understand it. And the user can decompile it, effectively getting to know how to decode your other classes.
What is done in practice is to use obfuscator. We use Proguard at our company.