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 Greg 4 · Jun 01, 2011 at 12:49 PM · androidiossqlitesqlsqldatabase

Best Way To Store Credentials and Data Online?

I have been looking High and Low for a simplistic Answer for this and seem to come up empty

What I am Creating

An App for Android, iOS and a mobile website that must access the same data, be secure and speedy.

A user will need to access/create the following

  • User Name

  • Password

  • Personal Data Info(text based items)

  • Unique One Time

  • Activation Codes

  • Possible for thousands to need access at same time

What I THOUGHT would work a simplistic SQL database What I am learning about this approach A few other forums (will post links if I find them again) show that you can include system.data.sqllite witin a c# script by adding the reference and placing the dll within the asset folder. This seems like a decent approach except for two issues

  • I do not believe this will work for mobile devices on windows

  • Apparently this is not very secure - I saw multiple posts about how a .unity can be decompiled very easily and sql passwords can be revealed. I believe this is not the case when I compile the app as a apk on android or for ios but would like some more information on the best approach for security

I am open to any suggestions because at this point I am back at ground zero.

Is it best to create a plug in on android/ios and handle SQL somehow within the sdks?

Or should I handle the SQL within Unity a different way?

Is there other options besides SQL out there? (please note when I Say SQL i mean database if there is a different database system out their that would work better please let me know, however I do know that my server can successfully install a sql database and have had expeierance with this before)

I have used Text files for data storage online before and used HTTP download commands to grab the data, however this does not seem secure and since I will have multiple possible thousands of users accessing this data at the same time I need something that will allow for this

I am a software/graphics programmer and do not have much experience with database storage but once I understand where to look do not see that being a challenge

Thank you for you Help -

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
1
Best Answer

Answer by almo · Jun 01, 2011 at 01:45 PM

What we did for the iPhone game I worked on was this:

The iPhone connects to a webservice, and the webservice does stuff in the database. We went through Facebook, so the user put in their facebook login info, and the app got a token from Facebook, which it passed to the webservice. Then the webservice interacted with the database.

Sure, users can decompile and hit the webservice and adjust their scores themselves. But they can't mess with other peoples' accounts because they only get enough info to access the webservice, not the database itself.

This is why we only reported high scores for your friends, not the world. People are less likely to hack score tables if only their friends can see it.

Comment
Add comment · Show 3 · 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 Greg 4 · Jun 01, 2011 at 02:40 PM 0
Share

Ok, I also have read something about an interface system between my system and the database, so I am starting to see the light on this... I have no experience with this type of set up, could you shed some more light on it?

Searching in the dark for 'webservice' I found this http://www.oracle.com/technetwork/articles/javase/index-137171.html not sure if that is really what I should be looking for or not

But any help would be greatly appreciated!

avatar image almo · Jun 01, 2011 at 02:45 PM 1
Share

http://davidwalsh.name/web-service-php-mysql-xml-json

Here's an example webservice made with php and mysql. This might help you with the idea of how to structure it.

avatar image Graham-Dunnett ♦♦ · Jun 01, 2011 at 02:46 PM 1
Share

That oracle doc is good, but see also http://en.wikipedia.org/wiki/Webservice.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

how can I establish a safe SQLite connection 0 Answers

Sqlite RANDOM() function not working on Android? 0 Answers

mobile universal SQLite connection 0 Answers

How to use Sqlite3 in Unity for android 0 Answers

VR Highscore with database (SQLite) 1 Answer


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