数据传输 - Android客户端和服务器端之间传输加密
阿神
阿神 2017-04-17 15:54:34
0
2
368

Android客户端和服务器端之间传输一般用json,但是怎么保证传输数据的安全,密码的话可以用md5,但是像手机号这类的呢?客户端要加密,服务器端要解密,这一般都用什么方法???求赐教

阿神
阿神

闭关修行中......

reply all(2)
刘奇

1. Use HTTPS protocol for communication;
2. Use HTTP protocol to use asymmetric encryption. The server stores the private key and the client gets the public key. The client encryption and decryption algorithm can be made into an so library to increase the difficulty of being cracked.
3. Add specific parameters such as timestamps to the protocol and submit them to the server for verification. The HTTP protocol header can also be set with relevant security parameters. This requires an agreement between the server and the client.
The first option is recommended. HTTPS is protocol channel encryption, which is more direct and global.

阿神

Generally comparing encrypted data does not require decryption.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!