Android application security when accessing a web service -
I am creating an Android application that requires communication with a MySQL database. This application is not published, and I want to allow this application to be interfaced only with the web service that I will make for DB access.
I was wondering how can I safeguard the system, and this is the idea that I have taken with. I appreciate any feedback or other ideas, definitely made in Android. There is a way that is unknown to me.
I think the web service has to give a GUID. Each time it calls in a public way, the web service matches its GUID with the GUID given by the Android application. If the GUID does not match, then the use of the web service refuses. In short, my system has a 128-bit password.
If you believe the administrator on your database then everything should be fine, the most important change is That all communications should be done at HTTPS. If a hacker sees this traffic then your database will be disconnected.
I will still use the username / password combo to use the system I would recommend using the existing mysql.users table with the MySQL password ()
function I am This GUID looks like a cookie, and I would seriously consider using one of my own rolling instead of using an existing session handling system such as php session_start ()
. It is bad to find the wheel again, especially when it comes to security
Comments
Post a Comment