Easy to use asymmetric (public key) encryption
-
What I'm looking for is the basic equivalent of the following functions
pair GenerateKeyPair();
void Encrypt(Blob & data, Blob key);
void Decrypt(Blob & data, Blob otherkey);Expectations: Free for commercial use, source code or static library, quality algorithm, quality code, no babbling about prime numbers and padding and Bob's love live in the documentation. Ideally doesn't pull in a massive project that takes an hour to configure and build. Doesn't need to be blindingly fast, doesn't need to thwart the NSA or the credit card mafia. I've looked at Crypto++ as most likely candidate, but it's still not exactly lazy dev friendly. (I tried to post in quick answers, but it wouldn't let me. Maybe there's now half a dozen duplicate questions in you database, Chris!)