- Home /
Work with XML hidden for the user?
Hello! I'm working on a project in which I read and write information of the game across of XML files. I'm using StreamingAssets folder to locate the files. But with this method the User may modify the files. How do I read and write these files in a hidden way?
Thanks!
Answer by Graham-Dunnett · Oct 08, 2011 at 07:29 PM
Probably best to not store these xml files on the local machine where a user can hack them. Instead, store them on a server you control, and read and write them using WWW and WWWForm. Also, have an md5 hash of the data with some password only you know, so you can check that the XML has not been modified on it's path from the server to the client machine.
Thanks, but if I want to sell a standalone version, there are alternative ways?
What's the point into preventing the user editing stuff on stand alone versions? If someone want's to cheat, he will found enough ways. $$anonymous$$ay it be memory modification, editing an X$$anonymous$$L file, using hexeditor to edit binary savegames or decompile the game's file and then editing it or even find out the encryption key (if it's encrypted) and then edit it.
There is no security for stuff which is located on the users computer. Not yet, not ever. And if the user cheat in single player games, they cheat themselves. Cheating is only a problem, when other players are involved and this can only be reduced via server-sided stuff.
Your answer
Follow this Question
Related Questions
Saving My World 1 Answer
Using XML for a simple webplayer Highscore Table 1 Answer
Write and Read to a iOS device! Help 1 Answer
Read STRING AS XML TO SHOW LIST 1 Answer
Writing to an XML File? 1 Answer