What I want is to obfuscate my java file but want to keep the class name and method name as it is. Is there any java obfuscator which provides such functionality?
I have tried pro guard gui obfuscator but can’t get what I want.
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.
ProGuard can do what you describe. If you don’t want it to rename classes and methods:
If you don’t want it to rename, remove, or optimize any entry points at all (e.g. merge classes, inline short methods, inline constant fields, remove unused parameters, etc.):
At that point, there won’t be much room left to optimize or obfuscate the method bodies, so you may want to evaluate if this is really what you want.