A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: saving text & variables locally as encrypted data

  1. #1
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101

    saving text & variables locally as encrypted data

    It is something I have yet to come to in my game creation but for example lets say that I allow the person to save the game as a file on the hdd, now from what I have seen as examples so far it just saaves a text file with a list of all the variables and stuff in it (easily hackable) can this data be encoded?

  2. #2
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    Why would you want a games data to be encoded, well a way that would be harder to hack would be using shared objects which is basically flash cookie just make an array with all your variables in it when saving and then turn it into a shared object
    So tired of all the fighting....

    http://joejoe2288.kawanda.net

  3. #3
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101
    Originally posted by joejoe2288
    Why would you want a games data to be encoded,
    Simple, if for example you stored the health of a player in a saved game, and then they loaded up they could change their own health, so it would help prevent people changing thier strength, health etc

  4. #4
    The Flashman earl223's Avatar
    Join Date
    Sep 2000
    Location
    Marikina City, Philippines
    Posts
    876
    As joejoe said, use [B]SharedObjects[/B}. It is in a way encrypted, and is save in a location most users wont be able to find... unless they know that your using one.
    i eat actionscripts for breakfast

  5. #5
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101
    Thanks for all the help guys, not come to do it tho yet lol but will do within the next.... month/year/decade/lifetime
    Originally posted by earl223
    [B]As joejoe said, use SharedObjects[/B}. It is in a way encrypted, and is save in a location most users wont be able to find... unless they know that your using one.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center