Home  >  Q&A  >  body text

数据传输 - Android客户端和服务器端之间传输加密

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

阿神阿神2720 days ago371

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 15:56:34

    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.

    reply
    0
  • 阿神

    阿神2017-04-17 15:56:34

    Generally comparing encrypted data does not require decryption.

    reply
    0
  • Cancelreply