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:

  1. use client_secret: compiled string in android app server needs validate in order make account creation.
  2. use https (it make more difficult use proxy inspect http traffic)
  3. al alternate way of doing (1) using client_secret locally encrypt payload using create user
  4. check specific user_agent on http request

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -