Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6241139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:42:22+00:00 2026-05-24T11:42:22+00:00

I have a iPhone app that must work offline, and need be able to

  • 0

I have a iPhone app that must work offline, and need be able to be used for several users with the same device.

I store now the pass inside the sqlite database. It must be there… because the database is in sync with another one in a normal sql server box.

So, I read the staff usernames & password from the master db and send back that info to the iPhone bd. When a user login into it the app read from the local bd. The user work offline then eventually sync again against the master bd.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:42:24+00:00Added an answer on May 24, 2026 at 11:42 am

    I’m not exactly sure what your question is…

    If it’s “how can I keep people from stealing data stored on a device” then the answer is You can’t. If it is stored on a device then anyone with direct physical access can pull any stored secrets.

    In particular if your code is on the device, then a hacker can pull any encryption keys or other embedded resources (including database) off of it.

    So, if you’re trying to prevent that just know that you can’t. If the material is of a sensitive enough nature then I’d say abandon the “disconnected” model entirely.

    If it isn’t that sensitive and you are just trying to keep the someone from poking around then just do what we normally do: encrypt the database and store the key in your app.


    Going a little bit further, if you are trying to prevent a stolen phone from being compromised then you’re only choice is to have remote wipe enabled. However, even that can only save you if the lost phone is reported quickly AND the person who stole it doesn’t know how to yank the SIM card to stop it.


    At the end of the day, blackberry still blows apple away in security.


    UPDATE: my comment was going to be too long.

    @mamcx: I don’t think you’re quite understanding the scope of the problem you have. ANY data on the device can be compromised, including passwords stored in the keychain. It’s really not that hard on the iPhone.

    Let’s say you hash the password with a salt and store that in your local sqllite db. Now, when a disconnected user types in their username and password your code will have to hash what they typed add the salt and compare it against a value in the local db.

    ALL of the information necessary to do this is stored on the device due to the disconnected nature of it. This includes the hashing algorithm and the salt.

    Now, let’s say the device is stolen OR an internal employee decides to wear a black hat. Pulling all of the data is simple. This can be done in a non destructive way and the device could be put back without anyone knowing it was missing. At this point the hacker has as long as they want to create the rainbow tables to crack the passwords. Heck, there are “companies” that will rent time on various clouds to build the rainbow tables for you.

    Of course, the passwords themselves aren’t that necessary, unless the hacker wants to resell them, because all of your data is already lost.

    So, the question is: how important is the data? If you can’t lose it, don’t do allow the app to run disconnected. If it’s not that important, then by all means do it locally. Just let the users know that they shouldn’t use a username / password they are using elsewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have iphone with os ver. 2.0 i read that for app store all
I have an iPhone app that must use external cloud db to sync data
I have an iPhone app that hides the status bar. However, my main view
I have an iPhone app that compiles and runs fine in the Simulator on
I have an iPhone app that heavily relies on the OpenCV library; as such,
I have an iPhone app that is based on a navigation controller. I have
I have an iphone app that I built based off a tutorial (for a
I have an iPhone app that shows a simple view (View 1) that has
I have an iPhone app that uses the json-framework . I moved some of
I have a simple iphone app that's based on the CrashLanding sample app. So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.