Can someone please give me an example of encryption and decryption using
#include <openssl/evp.h>
in c++ code: Aes 128 with cbc a key and an iv?
Thanks.
There are several answers on Stack Overflow, e.g. AES CTR 256 Encryption Mode of operation on OpenSSL
If you don't know what CBC and friends are all about, I would suggest either reading up on it, or using a wrapper library. OpenSSL is fairly low level, so if you don't know what you are doing, you will probably be not only more productive with a wrapper library, but also do things the correct way as well.