views:

371

answers:

2

Duplicate of this and this.

I'm looking for a free C or C++ cryptography library that can be embedded in a closed-source applicationand supports RSA public-key cyphering. I've found OpenSSL and Crypto++ but neither have a good documentation for a beginner.

Anyone knows a good, free, C or C++ cryptography library with a decent documentation for a starter?

Or maybe a link to a good Starter Guide for Crypto++ or OpenSSL.

+6  A: 

I'd say try again with Crypto++, I have used it, it's mature, popular, provides a lot of algorithms, abstraction(C++-style) to make encrypting a file or a string only a couple of lines away, and it has a non-viral license.

Diaa Sami
I second this, crypto++ is a great library. Get the source, it comes with a bunch of examples.
ttvd
Crypto++ has wiki (http://www.cryptopp.com/wiki/Main_Page) with bunch of examples, and a relatively active mail list.
Eugene
I found the wiki right after I posted this question, but thanks!
Vargas
+2  A: 

Are you on windows?

If so then use the Cryptographic Next Generation (CNG) crypto algorithms. They are all FIPS certified and have been tested. Of course you can also link to these in a closed source application, but only if you are on windows.

MSDN on CNG Libraries

Spence
I need it to work both on Windows and Linux (and very shortly in FreeBSD too)
Vargas
Also note that CNG is only supported on Vista, Server 2008 and Windows 7.
Rasmus Faber
CNG works perfectly fine in .Net on XP?
Spence