#pragma once #include #include #include "exception.hpp" namespace nkg { struct base64_rfc4648 { class backend_error; static std::string encode(const std::vector& data); static std::vector decode(std::string_view str_b64); }; class base64_rfc4648::backend_error : public ::nkg::exception { using ::nkg::exception::exception; }; }