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 6036889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:59:29+00:00 2026-05-23T05:59:29+00:00

We are in the making of an Android app, a quiz game, which we

  • 0

We are in the making of an Android app, a quiz game, which we would like to cache questions + answers for when the user is offline. The problem with this is that we would need to withhold this data from the user until she has answered the questions. Otherwise, cheating would be very easy, which would harm the game. One could then extract all questions + answers and automatically submit answers to the server API.

The most convenient way would be to retrieve a key or secret from our server at installation time, hide it “somewhere”, and use it for communication with the server, and also for the encryption of questions + answers in storage. But obviously, hiding it “somewhere” is not a secure concept.

I have researched a bit, and it seems that reliable encryption is not possible in such cases, because the app has to “know” the secret (be it a certificate, passphrase + salt, or whatever) or at least where it can be found, and this can be extracted by decompilation. However, we would be fine with it being hard enough to do.

The question is: Do you know of a way to make it prohibitively hard for regular users to retrieve a secret from the APK – i.e., make it near-impossible to write an automated key-extractor?

My best guesses so far:

  • Hide some information in the database and use it as salt for the key
  • Add several bits of information from the device as salt (IMEI, email address, serial number,…) – perhaps together with obfuscation the way how the salt is applied might be hard to obtain?
  • 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-23T05:59:30+00:00Added an answer on May 23, 2026 at 5:59 am

    You could use a separate key for each question, which depends on the answer to the previous question. So it’s impossible to decrypt question 2 unless you’ve already answered question 1.

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

Sidebar

Related Questions

I am making android app in which I am facing problem . The overview
i'm making an android quiz app. there are have one question an four answers,
I am making a quiz app for Android. The user has 30 seconds to
I'm making an Android app and I would like to know how to hide
I am making an Android app, whose main.xml file is like this: <?xml version=1.0
I am making an android app in which i am trying to slide between
I'm making an Android app where the user can download files from a FTP-server.
I am making an android app in which I need to make different tables
I'm making an Android app and have a strange problem. I need a ViewFlipper
I am making an android app in which i want to make a dynamic

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.