25 static std::string
encode(
const std::string& bufplain);
28 static std::string
encode(
const char* bufplain);
31 static std::string
encode(
const char* bufplain,
int size);
34 static std::string
encodeURLSafe(
const std::string& bufplain);
40 static std::string
encodeURLSafe(
const char* bufplain,
int size);
46 static std::string
decode(
const std::string& bufcoded);
49 static std::string
decode(
const char* bufcoded);
52 static std::string
decode(
const char* bufcoded,
int size);
55 static std::string
decodeURLSafe(
const std::string& bufcoded);
61 static std::string
decodeURLSafe(
const char* bufcoded,
int size);
65 static int encode_len(
int len);
68 static int encode(
char *encoded,
const char *
string,
int len);
69 static int decode_len(
const char *bufcoded);
72 static int decode(
char *bufplain,
const char *bufcoded);
76 #endif // ARCLIB_BASE64 Arc namespace contains all core ARC classes.
Definition: ArcConfig.h:11
Base64()
Constructor is not implemented. Use static methods instead.
static std::string decode(const std::string &bufcoded)
Decode a string from base 64.
Base64 encoding and decoding.
Definition: Base64.h:15
static std::string decodeURLSafe(const std::string &bufcoded)
Decode a string from base 64 with URL-safe character set.
static std::string encode(const std::string &bufplain)
Encode a string to base 64.
static std::string encodeURLSafe(const std::string &bufplain)
Encode a string to base 64 using URL-safe character set.