Android Question A way to hide the url ?

tufanv

Expert
Licensed User
Longtime User
Hello

I am using httpjob to get some data from a xml feed. I want to hide the url of the feed inside the app so that if someone uses a network monitor or stg like that , they wont be able to see the link but i don't think it is possible , is it ?

Thanks
 

tufanv

Expert
Licensed User
Longtime User
Make sure that the string itself is a process global string so it will be obfuscated.

If the url is a https url then only the host name will be revealed with a network sniffer.

Thanks Erel,

perfect for b4a and for b4i ? It is same for the https but what about the string URL ?
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
but what about the string URL

The URL can't be encrypted. Like Sorex said, you can only use a server between which calls the real server.

It's like sending a paper mail. You can encrypt the content but the address has to be written on the envelope.
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
The URL can't be encrypted. Like Sorex said, you can only use a server between which calls the real server.

It's like sending a paper mail. You can encrypt the content but the address has to be written on the envelope.

Am I understanding wrong or Erel says different ? If the string is obfuscated and netwrok cant be sniffed ( ony hostname no problem but i use an api key while getting a data )
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Obfuscation keeps your string URL "safe" from reverse-engineering your code, while https protocol protects communications between your app (obfuscated or not) and the intended server.
As an extra protection layer, you could direct your app to a server which in turn calls the intended one, so that sniffing communications between your app and the first server will lead to discover that "false" server and not the final one.
If you choose the latter setup, you could embed your secret API key on the middle server so that your app will have no notion of it. In that case the middle server will receive commands from your app and properly format them for the final server (returning responses back to originating app).
 
Upvote 0
Top