MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
base64.h
Go to the documentation of this file.
1 #pragma once
2 #include <string>
3 
5 class Base64 {
6  private:
7  static const std::string chars;
8  static inline bool is_base64(unsigned char c);
9  public:
10  static std::string encode(std::string const input);
11  static std::string decode(std::string const & encoded_string);
12 };
static std::string decode(std::string const &encoded_string)
Used to base64 decode data.
Definition: base64.cpp:49
static const std::string chars
Needed for base64_encode function.
Definition: base64.h:7
Holds base64 decoding and encoding functions.
Definition: base64.h:5
static bool is_base64(unsigned char c)
Helper for base64_decode function.
Definition: base64.cpp:7
static std::string encode(std::string const input)
Used to base64 encode data.
Definition: base64.cpp:14