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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.