CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
Base64.h
Go to the documentation of this file.
1
7#include <string>
8
10std::string base64_encode(std::string string_to_encode);
12std::string base64_encode(unsigned char const* , unsigned int len);
14std::string base64_decode(const char* encoded_string);
16std::string base64_decode(std::string const& s);
17
18// Unit test entry point (free function form; see UnitTestFramework.h).
19// Defined inside namespace cmlabs (like the framework and the other CMSDK
20// tests) so the unittest:: helpers and GetTimeNow() resolve.
21namespace cmlabs {
23 bool Base64_UnitTest();
24}
std::string base64_decode(const char *encoded_string)
Decode Base64 text.
Definition Base64.cpp:49
std::string base64_encode(std::string string_to_encode)
Base64-encode a string's bytes.
Definition Base64.cpp:44
bool Base64_UnitTest()
Base64 round-trip unit test.
Definition Base64.cpp:148