简体   繁体   English

使用 C++/C 进行安全网络编程

[英]Secure Network Programming using C++/C

I am trying to implement a secure network/client communication using sockets.我正在尝试使用套接字实现安全的网络/客户端通信。 I am having hard time finding information on how to do so.我很难找到有关如何执行此操作的信息。 The only thing that seems to be out there is OpenSSL, but the library seems to be very complicated to use.似乎唯一存在的是 OpenSSL,但该库的使用似乎非常复杂。

Is there an easier library to use that is secure ?有没有更容易使用的安全库? If not then what is good documentation to get started on secure programming.如果不是,那么什么是开始安全编程的好文档。

For encryption there are multiple libraries are present.If you have not been saying that OpenSSL is complex then I highly suggest you OpenSSL.But now in your case , I suggest you to try对于加密,存在多个库。如果您没有说 OpenSSL 很复杂,那么我强烈建议您使用 OpenSSL。但现在就您而言,我建议您尝试

CryptoPP加密PP
its API style and programming paradigms take a little getting used to but you would like it in the end.它的 API 风格和编程范式需要一点时间来适应,但你最终会喜欢它。 It provides a wide range of symmetric and asymmetric algorithms with much flexibility.它提供了广泛的对称和非对称算法,具有很大的灵活性。 You can find a high level overview and sample codes.您可以找到高级概述和示例代码。 It is an easy library to integrate into projects.It is portable across several platforms.它是一个易于集成到项目中的库。它可以跨多个平台移植。

LibTomCrypt LibTomCrypt
TomCrypt is lightweight and simple. TomCrypt 是轻量级和简单的。 As for quality, TomCrypt is widely accepted as top-quality encryption.至于质量,TomCrypt 被广泛接受为顶级加密。 Also, it's license is public domain which avoids the attribution hassle for your documentation that BSD licenses give you when writing commercial software.此外,它的许可证是公共领域的,这避免了 BSD 许可证在编写商业软件时为您提供的文档归属麻烦。

Crypto++加密++
is also a very well reputed library也是一个非常有名的图书馆

Take a look at these libraries as well google's KeyCZar , botan and Capicom .看看这些库以及谷歌的KeyCZar牡丹CAPICOM
I hope this anwer will help you :)我希望这个回答能帮助你:)

Boost.Asio abstracts some of the OpenSSL lower level functions: examples Boost.Asio抽象了一些 OpenSSL 底层函数: 示例

Keep in mind you have to be careful and it is easy to think that you have a secure system when in fact you do not.请记住,您必须小心,并且很容易认为您拥有一个安全的系统,而实际上您并没有。 Just using OpenSSL doesn't guarantee security.仅使用 OpenSSL 并不能保证安全性。 It needs to be used correctly.它需要正确使用。

The Most Dangerous Code in the World: Validating SSL Certificates in Non-Browser Software世界上最危险的代码:验证非浏览器软件中的 SSL 证书

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM