0

I have developed an API restful in JSON to retrieve data from my server by a mobile app (iOS). I want to keep hidden my API avoiding someone via a network sniffing tool (like Wireshark) could find out it. On my server how can I allow only http request from my mobile app? What can I do?

1
  • 2
    Keep in mind that anything accessible to a client system (be it an iOS app or a a web app) it can be reverse engineered. You can make it difficult but there are many smart people with too much free time on their hands. Commented Feb 1, 2012 at 2:15

1 Answer 1

5

Use SSL and an API token.

Essentially, your request is going to contain your API token or key as a part of the request payload. You can encrypt the data yourself, using SSL, or both.

On the server, you check that the token matches with what is a valid token.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.