This is the object oriented wrapper library under OpenSSL libcrypto library.
- openssl >= 1.0.2
cmake <sources folder>
It's necessary to call method Initialize before using other classes and methods.
Initialize();
RsaKey rsaKey;
rsaKey.GenerateKey();
rsaKey.SetPlaintext(plaintext);
rsaKey.Encrypt()
std::cout << "plaintext: " << GetAsciiString(plaintext) << '\n'
<< "ciphertext: " << GetHexString(rsaKey.GetCiphertext()) << std::endl;