Minetest  5.4.0
base64.cpp File Reference
#include "base64.h"
#include <iostream>
+ Include dependency graph for base64.cpp:

Functions

static bool is_base64 (unsigned char c)
 
bool base64_is_valid (std::string const &s)
 
std::string base64_encode (unsigned char const *bytes_to_encode, unsigned int in_len)
 
std::string base64_decode (std::string const &encoded_string)
 

Variables

static const std::string base64_chars
 

Function Documentation

◆ base64_decode()

std::string base64_decode ( std::string const &  encoded_string)

References base64_chars, and is_base64().

Referenced by decode_srp_verifier_and_salt(), Client::handleCommand_AnnounceMedia(), and ModApiUtil::l_decode_base64().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ base64_encode()

std::string base64_encode ( unsigned char const *  bytes_to_encode,
unsigned int  in_len 
)

References base64_chars.

Referenced by Server::addMediaFile(), encode_srp_verifier(), ModApiUtil::l_encode_base64(), and translate_password().

+ Here is the caller graph for this function:

◆ base64_is_valid()

bool base64_is_valid ( std::string const &  s)

References is_base64().

Referenced by decode_srp_verifier_and_salt(), Server::handleCommand_Init(), ModApiUtil::l_check_password_entry(), and ModApiUtil::l_decode_base64().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_base64()

static bool is_base64 ( unsigned char  c)
inlinestatic

Referenced by base64_decode(), and base64_is_valid().

+ Here is the caller graph for this function:

Variable Documentation

◆ base64_chars

const std::string base64_chars
static
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/"

Referenced by base64_decode(), and base64_encode().