This is a C++ translation of defuse's php-encryption library available here. Please refer to their page for a more detailed description.
This library is pretty simple to use. Just make a secret key using the provided function, keep that key to encrypt and decrypt your data. Exceptions must be caught in order for this library to function correctly! I tried to only allow exceptions that the user could encounter as long as the default constants aren't played around with.
Code:
string secretKey = Encryption::createNewRandomKey();
//TO-DO Finish library
Output:
Secret Key: +IGfyaa3jQzXo3JOi7WXRg==
Cool uncle Stu balls.
PgenoeWGzf6nMIy+PUEMPObPeeiMp0e2TxbS69ttEhtSDLo2AReSu7/VQ3hPsuqXxg2apHMXH0ggoySZHrgkXCTGKNqbed1IRcui0dNuZ/A=
Cool uncle Stu balls.