Answer the question
In order to leave comments, you need to log in
How to be protected at communication of the client with the server on http?
I have an android application to which I want to tie a little communication with the server. I wrote a php layer to write and retrieve data from the database. But I want to be able to reach the server only from this application, how can I do it? Of course, I can use the secret code, but the application is not protected from reverse engineering, that is, by looking at the code, they will be able to understand how to get to know the server. How to be?
Answer the question
In order to leave comments, you need to log in
If we proceed from the assumption that the application can be completely decompiled, then any of your algorithms can be completely restored. All you can do is make it harder to recover the algorithm. Passwords, certificates, https, asymmetric encryption, storing the key received from the server in the file system, etc.
If we assume that the application is sufficiently obfuscated and cannot be restored (within a reasonable time), then it is enough to use https, you can certificate pinning to prevent protocol reverse via mitm.
All deep IMHO.
Well, as a very extreme case - generating a level on the server, transferring all button presses to the server, checking the passage on the server by analyzing button presses.
How to be?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question