Securing MC Plugin Code

Status
This thread has been locked.

Wvisoecj

Supreme
Feedback score
9
Posts
471
Reactions
677
Resources
0
Hey everyone, I was prompted this question when trying to figure out ways to hack my own code. Does anyone use/know of any security when it comes to running knowing the plugin is genuine from its source? I'm assuming no since it's client side, would anyone be interested in sharing some obscurity technique's (beside obfuscation) in PM? I'm trying to secure my plugin from tampering because it's sending data to my server, and I don't want that data to be tampered with. Also I wanted to prompt discussion! Thanks!
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Stockfish

Sometimes a software developer
Premium
Feedback score
2
Posts
185
Reactions
100
Resources
0
Firstly, you should keep in mind you'll never be able to fully obfuscate your code. It's always possible to reverse-engineer something, no matter how complicated it may seem. Everything is hackable.
That being said, you can however partially obfuscate your code using various obfuscators (a list of open source programs can be found here http://java-source.net/open-source/obfuscators). But if you wish on using a paid software, I'd recommend programs like Zelix or Allatori.
 

noahp78

Feedback score
0
Posts
1
Reactions
0
Resources
0
Indeed, obfuscating is pretty much the only way to protect java code at the moment. But a hacker with some time can still bypass it.
 
Status
This thread has been locked.
Top