What is the best encryption library in C / C ++?

What is the best encryption library in C / C ++ In terms of:

  • entropy
  • quality
  • ease of use
  • readability
  • portability
  • performance

What is your favorite and why do you like it?

+43
c ++ c encryption
Oct 07 '08 at 23:48
source share
7 answers

We have successfully used OpenSSL . Portable, standards compliant and easy to use.

+18
Oct 07 '08 at 23:51
source share

I have used CryptoPP in the past ( http://www.cryptopp.com/ ), and although its API style and programming paradigms are a bit used, I liked it at the end. It provides a wide range of symmetric and asymmetric algorithms with great flexibility. The documentation is that there are API documents, but there is a small "high-level" overview and a simple code example. I ended up puzzling pieces of code from across the network. It was easy to integrate into my project (statically linked). I am using MSVC - 2003, when I started using it, now I switched to 2008. It is portable across multiple platforms (check the website). I always used RNG by default, I don’t know which one.

+11
Oct 08 '08 at 8:36
source share

I need to go with LibTomCrypt . He often overlooked OpenSSL, but TomCrypt is simply lightweight and simple. In terms of quality, TomCrypt is widely used as high-quality encryption. In addition, this license is publicly available, which helps to avoid problems with the attribution of your documentation that BSD licenses give you when writing commercial software.

+9
Oct 07 '08 at 23:53
source share

My favorite GNU library:

libgcrypt

Performance is good and EVERYWHERE used it, so it is very well tested.

+3
Oct 07 '08 at 23:58
source share
+3
08 Oct '08 at 3:02
source share

The C ++ version has not yet been released, but goolge KeyCzar http://code.google.com/p/keyczar/ may be worth a look. No matter what you say about your business, they have many smart programmers working for them.

+2
Oct 08 '08 at 1:15
source share

GPGme . Easy to use and compatible with OpenPGP format

+1
Oct 08 '08 at 15:17
source share



All Articles