Restructured some for clarity, got rid of the crappy JSON library, general awesomeness.
This commit is contained in:
parent
022ff26205
commit
e3ecdb1e4b
34 changed files with 965 additions and 6996 deletions
11
util/base64.h
Normal file
11
util/base64.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <string>
|
||||
|
||||
/// Holds base64 decoding and encoding functions.
|
||||
class Base64{
|
||||
private:
|
||||
static const std::string chars;
|
||||
static inline bool is_base64(unsigned char c);
|
||||
public:
|
||||
static std::string encode(std::string const input);
|
||||
static std::string decode(std::string const& encoded_string);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue