You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
415 B
C++
13 lines
415 B
C++
7 years ago
|
#ifndef JSON_ADAPTER_BASE64_HH
|
||
|
#define JSON_ADAPTER_BASE64_HH
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
// decodes base64-encoded 'input', skip whitespaces, throw std::runtime_error if an illegal character found in string
|
||
|
std::string base64_decode(const std::string& input);
|
||
|
|
||
|
// encodes base64-encoded 'input', without any whitespaces nor linebreaks
|
||
|
std::string base64_encode(const std::string& input);
|
||
|
|
||
|
#endif // JSON_ADAPTER_BASE64_HH
|