Base64 encoding and decoding.
More...
#include <arc/Base64.h>
|
| Base64 () |
| Constructor is not implemented. Use static methods instead. More...
|
|
|
static std::string | encode (const std::string &bufplain) |
| Encode a string to base 64. More...
|
|
static std::string | encode (const char *bufplain) |
| Encode a string to base 64. More...
|
|
static std::string | encode (const char *bufplain, int size) |
| Encode a string to base 64. More...
|
|
static std::string | encodeURLSafe (const std::string &bufplain) |
| Encode a string to base 64 using URL-safe character set. More...
|
|
static std::string | encodeURLSafe (const char *bufplain) |
| Encode a string to base 64 using URL-safe character set. More...
|
|
static std::string | encodeURLSafe (const char *bufplain, int size) |
| Encode a string to base 64 using URL-safe character set. More...
|
|
static std::string | decode (const std::string &bufcoded) |
| Decode a string from base 64. More...
|
|
static std::string | decode (const char *bufcoded) |
| Decode a string from base 64. More...
|
|
static std::string | decode (const char *bufcoded, int size) |
| Decode a string from base 64. More...
|
|
static std::string | decodeURLSafe (const std::string &bufcoded) |
| Decode a string from base 64 with URL-safe character set. More...
|
|
static std::string | decodeURLSafe (const char *bufcoded) |
| Decode a string from base 64. More...
|
|
static std::string | decodeURLSafe (const char *bufcoded, int size) |
| Decode a string from base 64. More...
|
|
static int | encode_len (int len) |
|
static int | encode (char *encoded, const char *string, int len) |
| Encode a string to base 64. More...
|
|
static int | decode_len (const char *bufcoded) |
|
static int | decode (char *bufplain, const char *bufcoded) |
| Decode a string from base 64. More...
|
|
Base64 encoding and decoding.
◆ Base64()
Constructor is not implemented. Use static methods instead.
◆ decode() [1/4]
static std::string Arc::Base64::decode |
( |
const std::string & |
bufcoded | ) |
|
|
static |
Decode a string from base 64.
- Since
- Added in 3.0.1.
◆ decode() [2/4]
static std::string Arc::Base64::decode |
( |
const char * |
bufcoded | ) |
|
|
static |
Decode a string from base 64.
◆ decode() [3/4]
static std::string Arc::Base64::decode |
( |
const char * |
bufcoded, |
|
|
int |
size |
|
) |
| |
|
static |
Decode a string from base 64.
◆ decode() [4/4]
static int Arc::Base64::decode |
( |
char * |
bufplain, |
|
|
const char * |
bufcoded |
|
) |
| |
|
static |
Decode a string from base 64.
- Deprecated:
- Use decode(std::string&) instead
◆ decodeURLSafe() [1/3]
static std::string Arc::Base64::decodeURLSafe |
( |
const std::string & |
bufcoded | ) |
|
|
static |
Decode a string from base 64 with URL-safe character set.
◆ decodeURLSafe() [2/3]
static std::string Arc::Base64::decodeURLSafe |
( |
const char * |
bufcoded | ) |
|
|
static |
Decode a string from base 64.
◆ decodeURLSafe() [3/3]
static std::string Arc::Base64::decodeURLSafe |
( |
const char * |
bufcoded, |
|
|
int |
size |
|
) |
| |
|
static |
Decode a string from base 64.
◆ encode() [1/4]
static std::string Arc::Base64::encode |
( |
const std::string & |
bufplain | ) |
|
|
static |
Encode a string to base 64.
- Since
- Added in 3.0.1.
◆ encode() [2/4]
static std::string Arc::Base64::encode |
( |
const char * |
bufplain | ) |
|
|
static |
Encode a string to base 64.
◆ encode() [3/4]
static std::string Arc::Base64::encode |
( |
const char * |
bufplain, |
|
|
int |
size |
|
) |
| |
|
static |
Encode a string to base 64.
◆ encode() [4/4]
static int Arc::Base64::encode |
( |
char * |
encoded, |
|
|
const char * |
string, |
|
|
int |
len |
|
) |
| |
|
static |
Encode a string to base 64.
- Deprecated:
- Use encode(std::string&) instead
◆ encodeURLSafe() [1/3]
static std::string Arc::Base64::encodeURLSafe |
( |
const std::string & |
bufplain | ) |
|
|
static |
Encode a string to base 64 using URL-safe character set.
◆ encodeURLSafe() [2/3]
static std::string Arc::Base64::encodeURLSafe |
( |
const char * |
bufplain | ) |
|
|
static |
Encode a string to base 64 using URL-safe character set.
◆ encodeURLSafe() [3/3]
static std::string Arc::Base64::encodeURLSafe |
( |
const char * |
bufplain, |
|
|
int |
size |
|
) |
| |
|
static |
Encode a string to base 64 using URL-safe character set.
The documentation for this class was generated from the following file: