Base64 encode and decode class.
More...
#include <base64.hpp>
|
static std::string | encode (const std::string &str) |
|
static std::string | encode (const char *str, size_t size) |
|
static std::string | encode_url (const std::string &str) |
|
static std::string | encode_url (const char *str, size_t size) |
|
static std::string | decode (const std::string &str) |
|
static std::string | decode (const char *str, size_t size) |
|
Base64 encode and decode class.
This class encodes and decodes a string of base64 algorithm
◆ decode() [1/2]
static std::string matador::base64::decode |
( |
const char * |
str, |
|
|
size_t |
size |
|
) |
| |
|
static |
Base64 decodes a given character string
- Parameters
-
str | Base64 encoded string to decode |
size | Length of the string |
- Returns
- The decoded string
◆ decode() [2/2]
static std::string matador::base64::decode |
( |
const std::string & |
str | ) |
|
|
static |
Base64 decodes a given string
- Parameters
-
str | Base64 encoded string to decode |
- Returns
- The decoded string
◆ encode() [1/2]
static std::string matador::base64::encode |
( |
const char * |
str, |
|
|
size_t |
size |
|
) |
| |
|
static |
Base64 encodes a given character string
- Parameters
-
str | String to encode |
size | Length of the string |
- Returns
- The encoded string
◆ encode() [2/2]
static std::string matador::base64::encode |
( |
const std::string & |
str | ) |
|
|
static |
Base64 encodes a given string
- Parameters
-
- Returns
- The encoded string
◆ encode_url() [1/2]
static std::string matador::base64::encode_url |
( |
const char * |
str, |
|
|
size_t |
size |
|
) |
| |
|
static |
Url base64 encodes a given character string
- Parameters
-
str | String to encode |
size | Length of the string |
- Returns
- The encoded string
◆ encode_url() [2/2]
static std::string matador::base64::encode_url |
( |
const std::string & |
str | ) |
|
|
static |
URL base64 encodes a given string
- Parameters
-
- Returns
- The encoded string
The documentation for this class was generated from the following file: