Base64 algorithm implementation. More...
#include <base64.hpp>
Public Member Functions | |
virtual | ~Base64 () |
Static Public Member Functions | |
static void | encode (std::istream &data, std::ostream &output, uint8_t options=STD|PADDING) noexcept |
static std::string | encode (std::istream &data, uint8_t options=STD|PADDING) noexcept |
static void | encode (const std::string &data, std::ostream &output, uint8_t options=STD|PADDING) noexcept |
static std::string | encode (const std::string &data, uint8_t options=STD|PADDING) noexcept |
static void | encode (const uint8_t *data, uint64_t length, std::ostream &output, uint8_t options=STD|PADDING) noexcept |
static std::string | encode (const uint8_t *data, uint64_t length, uint8_t options=STD|PADDING) noexcept |
static void | encodeURI (std::istream &data, std::ostream &output) noexcept |
static std::string | encodeURI (std::istream &data) noexcept |
static void | encodeURI (const std::string &data, std::ostream &output) noexcept |
static std::string | encodeURI (const std::string &data) noexcept |
static void | encodeURI (const uint8_t *data, uint64_t length, std::ostream &output) noexcept |
static std::string | encodeURI (const uint8_t *data, uint64_t length) noexcept |
static void | decode (std::istream &data, std::ostream &output, uint8_t options=STD|PADDING) |
static std::string | decode (std::istream &data, uint8_t options=STD|PADDING) |
static void | decode (const std::string &data, std::ostream &output, uint8_t options=STD|PADDING) |
static std::string | decode (const std::string &data, uint8_t options=STD|PADDING) |
static void | decode (const char *data, uint64_t length, std::ostream &output, uint8_t options=STD|PADDING) |
static std::string | decode (const char *data, uint64_t length, uint8_t options=STD|PADDING) |
static void | decodeURI (std::istream &data, std::ostream &output) |
static std::string | decodeURI (std::istream &data) |
static void | decodeURI (const std::string &data, std::ostream &output) |
static std::string | decodeURI (const std::string &data) |
static void | decodeURI (const char *data, uint64_t length, std::ostream &output) |
static std::string | decodeURI (const char *data, uint64_t length) |
Static Public Attributes | |
static const uint8_t | STD |
static const uint8_t | URL |
static const uint8_t | PADDING |
static const uint8_t | NOPADDING |
Base64 algorithm implementation.
Base64 is a common algorithm to encode binary data into text.
|
virtual |
Base64 destructor
|
static |
Decode data in base64.
data | the data bytes to decode |
length | the data length |
output | the stream to write in |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data bytes to decode |
length | the data length |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data string to decode |
output | the stream to write in |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data string to decode |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data stream to decode |
output | the stream to write in |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data stream to decode |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data bytes to decode |
length | the data length |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data bytes to decode |
length | the data length |
output | the stream to write in |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data string to decode |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data string to decode |
output | the stream to write in |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data stream to decode |
std::bad_cast | invalid base 64 stream |
|
static |
Decode data in base64.
data | the data stream to decode |
output | the stream to write in |
std::bad_cast | invalid base 64 stream |
|
staticnoexcept |
Encode data in base64.
data | the data string to encode |
output | the stream to write in |
options | the encoding options |
|
staticnoexcept |
Encode data in base64.
data | the data string to encode |
options | the encoding options |
|
staticnoexcept |
Encode data in base64.
data | the data bytes to encode |
length | the data length |
output | the stream to write in |
options | the encoding options |
|
staticnoexcept |
Encode data in base64.
data | the data bytes to encode |
length | the data length |
options | the encoding options |
|
staticnoexcept |
Encode data in base64.
data | the data stream to encode |
output | the stream to write in |
options | the encoding options |
|
staticnoexcept |
Encode data in base64.
data | the data stream to encode |
options | the encoding options |
|
staticnoexcept |
Encode data in base64 URI.
data | the data string to encode |
|
staticnoexcept |
Encode data in base64 URI.
data | the data string to encode |
output | the stream to write in |
|
staticnoexcept |
Encode data in base64 URI.
data | the data bytes to encode |
length | the data length |
|
staticnoexcept |
Encode data in base64 URI.
data | the data bytes to encode |
length | the data length |
output | the stream to write in |
|
staticnoexcept |
Encode data in base64 URI.
data | the data stream to encode |
|
staticnoexcept |
Encode data in base64 URI.
data | the data stream to encode |
output | the stream to write in |
|
static |
Base64 no padding flag
|
static |
Base64 padding with '=' flag
|
static |
Base64 classic aplhabet flag
|
static |
Base64 URL aplhabet flag