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:
- how to discover my Android phone in php side?
- how can I send data from php to Android?
- how can I send data from Android to php?
- how can I use a secure connection?
- how can I encrypt and decrypt my data?
Edited: My urgente problem is: how to get data from php (safely) in android side? Give me an example...
Thanks