I am currently using NSUserDefaults, but I’ve heard that Jailbreakers can easily change these values and cheat on Game Center. Should I encrypt the value I store? Should I use keychain instead? Should I store the value in binary in NSUserDefualts using BOOLs (probably not)? What is the best way to store a highscore to prevent hacking, and how is it done?
I am currently using NSUserDefaults, but I’ve heard that Jailbreakers can easily change these
Share
Any data that needs to accessible only via code and should be secure would fit perfectly in the KeyChain.
If it becomes more that just a little bit of data, then encrypting it and storing it in the documents directory could also do the job.
But if someone really wanted to, they disassemble your app and try to locate the encryption key. Not easy but can be done.