Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best encryption library in C/C++? [closed]

Tags:

c++

c

encryption

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

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

What's your favorite and why do you like it?

like image 866
paxos1977 Avatar asked Oct 07 '08 23:10

paxos1977


People also ask

What is encryption library?

The AWS Encryption SDK is a client-side encryption library designed to make it easy for everyone to encrypt and decrypt data using industry standards and best practices. It enables you to focus on the core functionality of your application, rather than on how to best encrypt and decrypt your data.

What is the fastest encryption?

Twofish is considered among the fastest encryption standards and is hence favoured for usage among hardware and software enterprises. It is freely available and hence makes it popular. The keys used in this algorithm may be up to 256 bits in length and only one key is needed.


2 Answers

We've used OpenSSL with good success. Portable, standards compliant and easy to use.

like image 70
Rob Walker Avatar answered Oct 15 '22 20:10

Rob Walker


I've used CryptoPP in the past (http://www.cryptopp.com/) and although its API style and programming paradigms take a little getting used to, I liked it in the end. It provides a wide range of symmetric and asymmetric algorithms with much flexibility. Documentation is so-so, the API docs are there but there's little 'high-level' overview and simple sample code. I ended up puzzling together pieces of code from around the net. It was easy to integrate into my project (linked statically). I'm using MSVC - 2003 when I started using it, now switched to 2008. It's portable across several platforms (check out the website). I've always used the default RNG, don't know which one that is.

like image 33
Roel Avatar answered Oct 15 '22 21:10

Roel