1

I am sending data from android app to php and get data from php to android app in json format. If anyone hit my url in browser address bar, they can able to see what data i can send from php to android app and vise versa. How can i hide or collapse data so that the user cannot understand and what data i am transfer, even though they can see in browser. Is there any way to do this. If yes, please any one provide the sample code. Thanks in advance.

Janaki
  • 145
  • 2
  • 16
  • You can use Encryption for it. check it. – D.J Sep 20 '16 at 11:24
  • 1
    Start by using HTTPS to encrypt on the wire. You can minimize and obfuscate the data, but you can't prevent them from seeing text in the browser. – duffymo Sep 20 '16 at 11:24
  • you can use encryption before sending the data and decrypt data after receiving from server – SilentKiller Sep 20 '16 at 11:24
  • use token based http request for android as well as web. – HourGlass Sep 20 '16 at 11:26
  • Is any encryption and decryption built-in function available in both android and php? Also What is the use of Base64. Is Base64 helpful in my case? – Janaki Sep 20 '16 at 11:31
  • Best practice to avoid an user seeing the data within the url is to use POST method instead of GET in an http request. :http://stackoverflow.com/questions/5647461/how-do-i-send-a-post-request-with-php – Proger_Cbsk Sep 20 '16 at 13:07

0 Answers0