iphone - Saving game score locally on iOS device...is security needed? -
do need store score hash, ie protect being edited/cheated user? newb knowledge, user unable view , manipulate locally stored data, plist files example. can elaborate?
[edit] i'm storing scores locally , periodically uploading them game center leaderboards. if device jailbroken i'd have security prevent scores being manipulated user. approach?
i this:
save in nsdictionary
, convert nsdata
object. comes cool part:
encrypt aes using class:
https://web.archive.org/web/20160806074714/http://iphonedevelopment.blogspot.com/2009/02/strong-encryption-for-cocoa-cocoa-touch.html
this military standard encryption return encrypted nsdata
object. save file , read/write whenever necessary. i've had experiences class , user can't it.
much better storing in plain sight using nsuserdefaults
.
give go!
Comments
Post a Comment