Pergunta

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.

Foi útil?

Solução

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.

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top