matador::base64 Class Reference

Base64 encode and decode class. More...

#include <base64.hpp>

Static Public Member Functions

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)
 

Detailed Description

Base64 encode and decode class.

This class encodes and decodes a string of base64 algorithm

Member Function Documentation

◆ decode() [1/2]

static std::string matador::base64::decode ( const char *  str,
size_t  size 
)
static

Base64 decodes a given character string

Parameters
strBase64 encoded string to decode
sizeLength 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
strBase64 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
strString to encode
sizeLength 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
strString to encode
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
strString to encode
sizeLength 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
strString to encode
Returns
The encoded string

The documentation for this class was generated from the following file:
  • matador/utils/base64.hpp