加密我的C ++应用程序发送和接收的数据?

时间:2013-07-23 08:24:38

标签: c++ c encryption cryptography network-security

假设我有一个C / C ++应用程序,我希望通过http发出请求并接收响应,我如何选择加密进/出的数据?我可以担心以后两端的解密,现在我想得到加密方面。

2 个答案:

答案 0 :(得分:0)

传输层安全性(TLS 1.0,1.1,1.2)是一种非常标准的协议。您将找到支持该协议的开源库和操作系统级API的相当一个领域。然而,这是问题所在。例如,OS X,你必须通过Transport Security来利用它;这是一个与Windows,GNU / Linux等完全不同的API。

答案 1 :(得分:0)

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.

假设我们已经拥有OpenSSL(用于加密和解密)和cURL(根据您的要求)等库。试试那些。

做一些谷歌搜索并尝试,如果你没有得到你的结果,我们会帮助你。享受编码。