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仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题