I am developing a small game (in Java) for term paper and the extension that I decided to do is an online scoreboard. As I thought this could happen, several people in my course figured out how to crack the scoreboard and submit their own grades.
I know that in the current way of presenting points there are several problems, but here it is. The game generates a rating, and then an HTTP GET on the URL with the parameters of the player ID, score and password.
I could change this as POST, as it can be harder to get the password data. In addition, I am considering running this protocol via HTTPS (although I don't know if this is more complicated in Java). Unfortunately, this does not stop the main way that people found a password that was decompiled by Java code.
I do not know how best to prevent hacking. I do not mind too much, but it is not so important, but it would be nice to provide it, therefore, when the code is marked, it does not load spam.
What would be your suggestion on how to obfuscate the code and / or ensure the security of the whole process?
source share