12-12-2012, 02:47 PM
(12-12-2012, 12:53 PM)coty-crg Wrote: Well if your game has online functionality and you don't want to save the files on the server..
Thing is, if someone really thinks your game is worth it, they'll crack that encryption open with a sledgehammer, potentially decompiling your program (or simply doing packet sniffing if the key is sent over the wire!) if necessary. The best solution is usually to either see it only as a way to slow hackers down (which only works once) or to design it in such a way that you don't even need this security.
Never trust the client, period. There's always the possibility of it being compromised/malicious. Honestly, it'd be best just to save files on the server unless they are trivial, in which case encrypting them is a bit of an exercise in futility, anyway