Reputation: 1213
I need to create a protocol (an API) to send data (encrypted) from my php server (my web site) to a specific Android phone. Or send data from Android phone to my php server. I need both methods. Data security is essential.
(by clicking in a button on web site or by clicking in a button in my Android phone)
I have searched here but i only see questions about sending data without concern of security.
Can anyone explain me how to do that?
I do pretend to know:
Edited: My urgente problem is: how to get data from php (safely) in android side? Give me an example...
Thanks
Upvotes: 0
Views: 1450
Reputation: 36
To communicate securely between an Android device and a PHP server I would use HTTPS. This article on the Android Developer site will help with your research in that department:
http://developer.android.com/training/articles/security-ssl.html
Using HTTPS will preclude you having to develop your own protocol.
Answering your bullet points:
I hope that helps :-)
Upvotes: 1