Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top