Cryptobox

Encryption using a passphrase

New in version 1.8.6.

This is a set of simple routines that encrypt some data using a passphrase. There are defined in the header cryptobox.h, inside namespace Botan::CryptoBox.

std::string encrypt(const byte input[], size_t input_len, const std::string &passphrase, RandomNumberGenerator &rng)

Encrypt the contents using passphrase.

std::string decrypt(const byte input[], size_t input_len, const std::string &passphrase)

Decrypts something encrypted with encrypt.

std::string decrypt(const std::string &input, const std::string &passphrase)

Decrypts something encrypted with encrypt.