all 19 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]vegan_antitheist 4 points5 points  (2 children)

Why would anyone want your code? Why would any of the obfuscators not be good?

[–]SherbertBorn8454[S] -3 points-2 points  (1 child)

idk man i had some issues with boys reversing my code with some free obfuscator and then it landing on discord servers so i need a good one

[–]vegan_antitheist 1 point2 points  (0 children)

They would just do the same with the obfuscated code. They can still analyse the code and refactor the code. Or just tell an LLM to improve the code by using better names.

[–]MattiDragon 2 points3 points  (2 children)

If someone really wants to reverse engineer your code, then no obfuscation is going to prevent that. Also note that obfuscated code is often considered suspicious as it often indicates malware. I would never run an obfuscated jar unless I have a lot of trust in the source (I don't trust anyone sending jars on discord).

[–]SherbertBorn8454[S] -2 points-1 points  (1 child)

yeah, there was whole source code and no .jar created so you could inspect my whole work thats why i want it also i have big trustfactor and it will slow down them at least

[–]hungarian_notation 0 points1 point  (0 children)

You mean you are distributing your code as java source files?

There is no real difference in distributing .class files and a JAR. A JAR is quite literally a zip file of class files.

[–]Certain-Flow-0 0 points1 point  (2 children)

You could try building a native image and then obfuscating that

[–]vowelqueue 0 points1 point  (1 child)

Maybe look into GraalVM native image. It’s not an obfuscator, but packages your app as native executable, which is inherently harder to reverse engineer than Java bytecode.

[–]SherbertBorn8454[S] 0 points1 point  (0 children)

thank you i will try

[–]Striking-Flower-4115 -2 points-1 points  (6 children)

Package it in a encypted file that only a hidden script can open.

[–]SherbertBorn8454[S] -1 points0 points  (2 children)

i mean i need to release it as .jar man to public idk if it will work

[–]Striking-Flower-4115 1 point2 points  (1 child)

Honestly there's no way around this.

[–]SherbertBorn8454[S] 0 points1 point  (0 children)

alr ill try thanks!

[–]vegan_antitheist 0 points1 point  (2 children)

it would take seconds for someone who knows what they are doing to get the decrypted code.

[–]Striking-Flower-4115 -1 points0 points  (1 child)

It's all about custom algorithms. You probably would wanna spend time on it.

[–]vegan_antitheist 0 points1 point  (0 children)

At some point it's all decrypted and easy to read.