android - Protect url from decompiling -
i've written app connects on php mysql. mysql passwords stored in php file. have save url in string http://www.abc.com/create_user.php , if decompiles app, can see url , manually create accounts. (i use post method in php)
it' s difficult prevent people seeing url backend using. argue impossible. if can't decompile app, still use proxy inspect traffic android app server.
i put stuff make more difficult though.
off top of head, could:
- use client_secret: compiled string in android app server needs validate in order make account creation.
- use https (it make more difficult use proxy inspect http traffic)
- al alternate way of doing (1) using client_secret locally encrypt payload using create user
- check specific user_agent on http request
Comments
Post a Comment