質問

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