Obfuscation of serializable class.

Hello,
I’m working on multiplayer game.
I’ve already done basic part…
I have a lot of classes on both sides server and client which implements Serializable (like players etc.).
How I can obfuscate them the same way on the both sides ? (i hope there are different ways than manual work… :clue:)
In proguard I can keep names when implements Serializable but it’s not solution.
Greetings

It’s a little unclear what you want, do you want to obfuscate the code, or the information being sent?

If you want to obfuscate the code just do another google search, JODE and RetroGuard come to mind though. If you haven’t read or are unaware of this info you should definitely take a look at this: http://www.excelsior-usa.com/articles/java-obfuscators.html

If you want to obfuscate the information then I honestly wouldn’t worry about it (yet) for a few reasons.

  1. This game is probably a hobby right now so audience is limited.
  2. Based on the first point they’d only be ruining the game for themselves.
  3. It’s not worth it (if your goal is to finish a game).

Thanks for link it will be very useful.
I want to obfuscate code.
The problem is that I can’t obfuscate class which Serializable.
In that case Player.class on client after obfuscation will be called asd.class with x,y,z variables and on server Player.class after obfuscation will be called hds.class with y,z,a variables.
It breaks whole serialization process.

Obfuscate the Client & Server as a single unit.

Or just don’t bother, move on, and be a little bit happier and less burdened with irrelevant things like this.

Cas :slight_smile:

Search for “Processing serializable classes”