I have an app built using with PhoneGap. In this app I need send a $_GET
request to a server, but I don't know if this is secure.
The app uses https for the request. Can anyone intercept the content of my request?
Any suggestions?
I have an app built using with PhoneGap. In this app I need send a $_GET
request to a server, but I don't know if this is secure.
The app uses https for the request. Can anyone intercept the content of my request?
Any suggestions?
It depends on what type of data you are sending or retrieving using get request. If the data is private then its not secure at all.
If you are querying data from database then you should sanitize the request, check for sql injections.
If the data is private, then do a POST request instead of get.
Use 2 ways encryption technique. Set a 'Key' by which you can encrypt data before sending and decrypt it when you receive it.
Anything sent over HTTPS is encrypted - you should get an SSL certificate for your server to authenticate it if you want people to send data to your server.
It doesn't matter if you send via GET, POST or any of the other HTTP protocols, what matters is using HTTP or HTTPS (SSL)
POST and GET via HTTP can be intercepted, but the data will be in plain text
POST and GET via HTTPS can still be intercepted, but the data will be encrypted making it harder but by not impossible to decrypt it.
You can also encrypt your own data using Javascript encryption libraries, transmit them via HTTPS, and decrypt them on your server. You can use the following JS and PHP libraries to get Phonegap and Serverside Encryption/Decryption of you packages:
I'd suggest doing both.
There are other similar SO questions: Is GET data also encrypted in HTTPS?