40std::tuple<std::string, std::string, std::string> encrypt(
const std::string& plain_text,
41 const std::string& key);
51std::string decrypt(
const std::string& cipher_text,
52 const std::string& key,
53 const std::string& nonce,
54 const std::string& tag);
57constexpr char default_key[] =
"rWnYJVdtxz8Iu62GSJy0OPlOat7imMb8";
CryptographyError(const char *message)
Constructor.
Definition cryptography.h:22
CryptographyError(const std::string &message)
Constructor.
Definition cryptography.h:27
constexpr char default_key[]
A default encryption key used in case no key was specified.
Definition cryptography.h:57