Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
base64.h File Reference
#include <string>
#include <string_view>
+ Include dependency graph for base64.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool base64_is_valid (std::string_view s)
 
std::string base64_encode (std::string_view s)
 
std::string base64_decode (std::string_view s)
 

Function Documentation

◆ base64_decode()

std::string base64_decode ( std::string_view s)

References base64_chars, and is_base64().

Referenced by decode_srp_verifier_and_salt(), ImageSource::generateImagePart(), Server::getMediaList(), 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 ( std::string_view s)

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_view s)

References base64_chars_padding_1, base64_chars_padding_2, and is_base64().

Referenced by decode_srp_verifier_and_salt(), ImageSource::generateImagePart(), Server::handleCommand_Init(), ModApiUtil::l_check_password_entry(), ModApiUtil::l_decode_base64(), and TestUtilities::testBase64().

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