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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:15:13+00:00 2026-06-10T17:15:13+00:00

I have an URL which returns JSON string with my data. Now, I would

  • 0

I have an URL which returns JSON string with my data. Now, I would like to keep this data in secret, so only my Android application could display it.

My first idea was to encode data with private key (on the server-side) and store the same private key in the application, so it can decode the message. However, attacker (user) can decomplie the .apk and obtain the private key.

  1. Do you have an idea how to secure it?
  2. Decompiling Java is simple. How about Android .apk? I heard that there is something called ProGuard – does Android use this by default and does it secure the code?
  • 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-06-10T17:15:15+00:00Added an answer on June 10, 2026 at 5:15 pm

    This generally cannot be done: if the user needs to see the data, they have to be able to decrypt it, etc. You can make it somewhat harder by not storing the data on disk, etc., but a determined user/attacker can dump memory, use a debugger, etc. to see the data. Think about what threats you are trying to protect from first, and then decide on a course of action.

    If you want only your app to be able to download the data, you need to use some sort of authentication + SSL. If you hardcode a key or password in the app, it is fairly easy to extract it, so that doesn’t buy you much. If you make the user enter the password each time they use the app, they will get frustrated quickly and leave a bunch of 1-star ratings. A middle ground would be to use some sort of token-based authentication, such as OAuth (or ClientLogin, if you really have to, but it is being deprecated) and have the user authenticate with their existing account, so that they don’t have to register and remember yet another password. Most Android devices already have a Google Account setup, so you can use that, but this requires additional permissions and user consent (confirmation dialog).

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

Sidebar

Related Questions

Hi have this URL string which I need to extract possibly using regex but
I have a json feed from this URL which contains 20 fields and I
I have a AJAX requests which returns a string of XML which I'd like
I have a url which have a response in Json lon=-0.1275&pg=0 I parsed the
I have a url which has some get variables in it like: domain.com/recover?email=my@email.com&token=abc123 inside
I have a class which makes a url request and stores data from that
I have a WCF Service which returns a string. I am trying to call
I have a small web service in C# 4.0 which returns data via JSONP.
Well I have a problem reading the JSON data in jQuery, which is outputted
I have an android application which downloads its information as JSON. A typical JSON

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.