#include #ifdef BOTAN_FOUND #include #endif namespace base64 { std::string encode(const std::string &input) { #ifdef BOTAN_FOUND return Botan::base64_encode(reinterpret_cast(input.data()), input.size()); #else #error "base64::encode() not yet implemented without Botan." #endif } }