Say I have a C / C++ application, and I wish to have it make requests via http, and receive responses, how might I choose to encrypt the data that is going / in or out? I can worry about decryption on either end later, for now I would like to get the encryption side of this.

有帮助吗?

解决方案

Transport Layer Security (TLS 1.0, 1.1, 1.2) is a pretty standard protocol to use. You'll find quite a domain of open source libraries and OS-level APIs that support this protocol. This is, however, the issue. OS X, for instance, you'll have to leverage this through Transport Security; which is a completely different API than that on Windows, GNU/Linux, so forth.

其他提示

Say I have a C / C++ application, and I wish to have it make requests via http, and receive responses, how might I choose to encrypt the data that is going / in or out? I can worry about decryption on either end later, for now I would like to get the encryption side of this.

Say we already have libraries like OpenSSL(for encryption and decryption) and cURL(according to your requirment). Try those.

Do some google search and try, if you didnt get your result, we`ll help you. Enjoy coding.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top