Reputation: 81
in Ubuntu: I have a .cpp code with a string value. I would like to crypt it with aes and also use the base64 encoding. How to do that?! OpenSSL is a solution, but it crypts files or strings from the command line.:(
I would like to crypt and encode my string in my code. From the command line I just want to use g++ test.cpp -o test -?
and a library that I need.
Upvotes: 1
Views: 359
Reputation: 47662
For AES encryption check out http://saju.net.in/code/misc/openssl_aes.c.txt
To compile your app you will have to do :
g++ -o test test.cpp -lssl -lcrypto
Upvotes: 2