Hello,
I’ve been trying to figure out a way to implement an online high score system for my game in Java. I have tried JDBC, but I found out that my shared hosting server does not allow MySQL connections from JDBC.
My high score system only needs to insert and show 10 scores and names.
First of all, I understand that I can only make hackers struggle, but not 100% protect it. (Though chances are not so high that someone would want to hack into a small game)
So, now I’m here considering other options…
-
Executing php script from Java to connect MySQL. Aside from protecting against MySQL injection, I am going to use ProGuard to make effort protecting against decompiles and set temporary password for insertion.
-
Just writing on a .txt file. My concern is security. If this choice works, how would I increase the level of security?
Which way is preferred? Any thoughts are appreciated.