TDME2 1.9.121
Static Public Member Functions | List of all members
Base64 Class Reference

Base64 encoding/decoding class. More...

#include <tdme/utilities/Base64.h>

Collaboration diagram for Base64:
Collaboration graph

Static Public Member Functions

static const string encode (const string &decodedString)
 Encodes an string to base 64 string. More...
 
static const string decode (const string &encodedString)
 Decodes an base64 encoded string. More...
 
static void encode (const string &decodedString, string &encodedString)
 Encodes an string to base 64 string. More...
 
static void encode (const vector< uint8_t > &decodedData, string &encodedString)
 Encodes uint8_t vector to base 64 string. More...
 
static void decode (const string &encodedString, string &decodedString)
 Decodes an base64 encoded string. More...
 
static void decode (const string &encodedString, vector< uint8_t > &decodedData)
 Decodes an base64 encoded string into uint8_t vector. More...
 

Detailed Description

Base64 encoding/decoding class.

Author
Andreas Drewke

Definition at line 16 of file Base64.h.

Member Function Documentation

◆ decode() [1/3]

static const string decode ( const string &  encodedString)
inlinestatic

Decodes an base64 encoded string.

Parameters
encodedStringencoded string
Returns
decodedString

Definition at line 34 of file Base64.h.

◆ decode() [2/3]

void decode ( const string &  encodedString,
string &  decodedString 
)
static

Decodes an base64 encoded string.

Parameters
encodedStringencoded string
decodedStringdecoded string

Definition at line 44 of file Base64.cpp.

◆ decode() [3/3]

void decode ( const string &  encodedString,
vector< uint8_t > &  decodedData 
)
static

Decodes an base64 encoded string into uint8_t vector.

Parameters
encodedStringencoded string
decodedDatadecoded data

Definition at line 61 of file Base64.cpp.

◆ encode() [1/3]

static const string encode ( const string &  decodedString)
inlinestatic

Encodes an string to base 64 string.

Parameters
decodedStringstring to encode
Returns
encodedString

Definition at line 23 of file Base64.h.

◆ encode() [2/3]

void encode ( const string &  decodedString,
string &  encodedString 
)
static

Encodes an string to base 64 string.

Parameters
decodedStringstring to encode
encodedStringencoded string

Definition at line 12 of file Base64.cpp.

◆ encode() [3/3]

void encode ( const vector< uint8_t > &  decodedData,
string &  encodedString 
)
static

Encodes uint8_t vector to base 64 string.

Parameters
decodedDatadata to encode
encodedStringencoded string

Definition at line 28 of file Base64.cpp.


The documentation for this class was generated from the following files: