Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by siddharth3322 · Oct 24, 2016 at 04:38 PM · playerprefssecuritydata storageencryption

Player Pref Security - iOS

I want to know about if we store data in iPhone via Player Pref, then its how much secure? Because I want to store important data.

Based on high score, I want to give real prices to game player so its definitely chances of data manipulation (hacking) via any other manner. So I want to restrict this and in play store I have noticed that game players has hacked leaderboard entries.

So for securing data, any kind of encryption, shall I need to use? or juts its apple so I don't need to do anything....

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by siddharth3322 · Oct 27, 2016 at 02:31 PM

I found this plugin for encryption and description. Its really easy to use as well...

For this suggestion thanks to @Luke-Houlihan

Secured PlayerPrefs

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Glurth · Oct 27, 2016 at 02:39 PM 2
Share

Encrypted does NOT necessarily mean secure.

avatar image siddharth3322 Glurth · Oct 27, 2016 at 02:41 PM 0
Share

But based on given key, they are doing encryption. So definitely key finding is really tougher within code,

what is your suggestion?

Doing encryption, I hope is better than just storing data using PlayerPref.

avatar image Glurth siddharth3322 · Oct 27, 2016 at 03:05 PM 1
Share

Sure, it's more secure than no encryption: but you are leaving the potential hacker a copy of the file to hack-away at. Once they figure out the encryption and keys, and post it online; so vanishes any security you may have had from the encryption. You have my suggestion as an answer: store the data online, with limited, user authenticated access to read non-user data, and write only player-specific data. You CAN use public-key-encryption for this because, the private-key can be changed on the server at anytime, and you can block users that fail to authenticate or otherwise appears to be attempting to hack the system. I would even take it step further, and perform all calculations that would say.. change the number of dollars in a users account, be performed on the server, rather than having the PC tell the server "how many dollars in this account".

Show more comments
avatar image Oliver-Bogdan Glurth · Oct 27, 2016 at 02:58 PM 0
Share

Encrypted is more secure than non-encrypted(plain) though. :)

avatar image
2

Answer by Glurth · Oct 24, 2016 at 08:14 PM

If the file is stored on their own computer (as PlayerPrefs are), I can guarantee that if enough people want to, they will (eventually) hack into the PlayerPrefs settings.

This might not matter so much for single-player games, but when you start introducing in-game purchases, and/or multiplayer, this is when it becomes an issue. Usually this information would instead be stored online, with limited accessed only through secure and user-specific authentication.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

62 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to secure playerprefs and keep people from changing it? 1 Answer

sqlite encryption question 1 Answer

PlayerPrefs: Credebility, Advantages/Disadvantages 1 Answer

Publishing Question - Is it possible to make the data folder and assets not modifiable by the game user? 1 Answer

Saftey on Unity Servers 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges