• 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
1
Question by psykojello2 · Jul 22, 2015 at 06:39 AM · xmldatastoresecuritycsv

Is it bad to use csv/xml resource to read data for mobile

I'm setting up a store in my game where users can purchase in game currency for real money and virtual items for in game currency.

I currently read the information about prices, descriptions and quantities from either a CSV table or XML file resource that I read from my Resources folder at runtime.

I intend for my game to be played on mobile platforms primarily. Is is easy to hack this data or is it safely packaged inside the apk/app file?

Is it better to hard code these numbers in a C# class instead?

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

1 Reply

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

Answer by ctrSciGuy · Jul 23, 2015 at 01:31 AM

Neither solution provides safety from hacking. You'll have to encrypt them to do that. Having a resources folder makes some overhead, you can get around that by assigning a TextAsset from the inspector for each file and then dropping the XML file into that slot. Then just don't make any Resources folders. As for security of the data, encrypt it and decrypt at runtime (preferably when loading the game.)

Comment
Add comment · Show 1 · 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 psykojello2 · Jul 23, 2015 at 06:23 AM 0
Share

Thanks, that answers my question! I'm looking into implementing Soomla's store module to manage my store assets - it seems to handle the encryption and decryption out of the box.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

23 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

Related Questions

Best practice to store levels and highscores etc 2 Answers

how to store data (Varibles) without losing them each scene? 1 Answer

saving data 1 Answer

Inserting specific words into descriptions stored in XML 0 Answers

Storing data for 30+ characters. (Database, textfile, etc) 4 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges