douwen3362 2015-06-03 18:26
浏览 35

如何保护android到php +共享首选项

i have 2 main questions which are security problems (and i searched like a couple of days for the answers but i didnt find so...) :

  1. How can i secure the connection between the android app to a php file. the thing is, i have a database server which i read / write data to it by the php file. I send from the android app a post request which contains data like the sql statement, mysql host, mysql user, mysql password and mysql database. How can i send this information without worrying about security problems? becouse if some one will use sniffer he might get this sensitive data and do whatever he want on my database.

  2. I want to secure the stored data on the shared preference in my application. the data i store are the phone number and other personal information (name address etc..) the problem is, all the actions the user can do are based on his phone number. for example, lets say it is like facebook - and all the user information like messages sent / got / photos uploaded etc are based on his phone number. What i mean is - i get all his data from the database based on his phonen umber on the app load - i use sql statement which i select all his data where phone = user phone. the problem is - the user can edit his phone number in the shared preference. so waht i did is i encrypted it but still, i dont think it is very secure.... Any ideas how to secure it / store the phone number + other information on the phone in secure way?

Thanks alot guys!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
    • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
    • ¥16 mybatis的代理对象无法通过@Autowired装填
    • ¥15 可见光定位matlab仿真
    • ¥15 arduino 四自由度机械臂
    • ¥15 wordpress 产品图片 GIF 没法显示
    • ¥15 求三国群英传pl国战时间的修改方法
    • ¥15 matlab代码代写,需写出详细代码,代价私
    • ¥15 ROS系统搭建请教(跨境电商用途)
    • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。