문제

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