Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to revert code obfuscation to recover source code? #162

Closed
jesussuarz opened this issue Oct 20, 2024 · 1 comment
Closed

Comments

@jesussuarz
Copy link

Is there any way to revert the changes?

I have obfuscated my code and, by mistake, I lost all of my original source code. Now I am trying to recreate everything from scratch. The easiest approach was to decompile the JAR file, but many things have changed in the generated code.

I would like to ask if there is any way to reverse the obfuscation process to recover the original code.

I would greatly appreciate any help.

Thank you.

@Fohlen
Copy link
Member

Fohlen commented Oct 21, 2024

If you have the obfuscation log file you can recreate the original package structure and method names, but variable names are lost for sure. It’s possible to recreate some code by hand but it is a lot of work. To sum up your question: no it’s not possible. Please don’t lose the source code to your obfuscated project 😃

@Fohlen Fohlen closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants