The detailed documentation for TinyAES++ can be found within the TinyAES namespace.
There are two central functions:
To encrypt and decrypt, you'll also need a 256-bit key and a 128-bit initialization vector. The simplest way to create them is with:
cbc_encrypt() and cbc_decrypt() can work with either std::string
, or with vectors of bytes called TinyAES::VBytes.
Here is a simple example showing how to create a key and iv, then encrypt and decrypt a text string: