Client server AES encryption

半世苍凉 提交于 2019-12-04 11:24:41

You could also use Diffie–Hellman key exchange. What programming language do you use?

You could use an asymmetric encryption algorithm to send the AES key securely and then use this key for symmetric AES encryption/decryption. The communication could go like this:

  1. A client wants to talk to a server with encrypted messages.
  2. The client generates a pair of public/private keys and sends the public key to the server.
  3. The server uses the public key to encrypt some secret key and sends it back to the client.
  4. The client uses his private key to decrypt the secret (both now know the secret key to encrypt/decrypt their communication).
  5. The client uses AES with the secret key to encrypt the message he wants to send to the server.
  6. The server uses the secret key to decrypt the message.

You must create your own protocol for communating part of your program first or use available secure protocols such as HTTPS.the only thing that i can tell you is that heavy computing operations such as encryption/decryption must be passed by clients first and then server process reliable requests.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!