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

  • SEARCH
  • Home
  • 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 6859641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:18:31+00:00 2026-05-27T02:18:31+00:00

i have an app that has an inapp purchase. in this store i can

  • 0

i have an app that has an inapp purchase.
in this store i can download 1 item that consost in 10 special bullets.
now, as i download i make:

FILE *pFile=fopen("bullets.dat", "wb");        
rewind(pFile);
fprintf(pFile, "%d",numberOfBullet);
fclose(pFile);

the question is:
this solution is easily hackable? (i think so)
do i need more secure way to store data or no?
what is the best way to store information? (i store only one integer but perhaps there is more convenient way to do it)
thanks

  • 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-27T02:18:32+00:00Added an answer on May 27, 2026 at 2:18 am

    Indeed that approach is not very secure. Someone with a jailbroken iPhone could just simply create or change that file on the phones filesystem and you’re app would be non the wiser.

    A better approach is to use the Keychain service to store this info, which will then be securely stored and not accessible to end users (at least easily). This does not fully protect you from in-app piracy (as someone could try and manipulate your binary to not call the checking functionality you have within your app). But its a good approach to protect against all but the most determined pirates.

    For more info on Keychain services have a look at http://developer.apple.com/library/ios/#documentation/Security/Conceptual/keychainServConcepts/01introduction/introduction.html

    A lot of people use the SFHKeychainUtils wrapper to make working with the Keychain easier. You can grab it from GitHub at https://github.com/ldandersen/scifihifi-iphone/tree/master/security

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

Sidebar

Related Questions

I have an iPhone application in the store that has in-app purchases. This app
I have an app that has some configuration settings stored in SharedPreference. Now I
We are having the issue that the app we have has an In-App purchase
I have some doubts about Newsstand/In-App Purchase that I really can not figure out.
I have an app in the iTunes store that has full functionality. I attempted
Have an app that has listings - think classified ads - and each listing
I have an app that has different names for different languages. How do I
I have an app that has a centre view with two views off to
I have an app that has a tabbar at the bottom. When I select
I have an app that has a TableView, NavigationView and TabBar running together. There

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.