Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
base64.hpp File Reference
#include <string>

Go to the source code of this file.

Functions

std::string base64_encode (std::string const &s, bool url=false)
 
std::string base64_encode_pem (std::string const &s)
 
std::string base64_encode_mime (std::string const &s)
 
std::string base64_decode (std::string const &s, bool remove_linebreaks=false)
 
std::string base64_encode (unsigned char const *, size_t len, bool url=false)
 

Function Documentation

◆ base64_decode()

std::string base64_decode ( std::string const &  s,
bool  remove_linebreaks = false 
)

Definition at line 249 of file base64.cpp.

◆ base64_encode() [1/2]

std::string base64_encode ( std::string const &  s,
bool  url = false 
)

Definition at line 254 of file base64.cpp.

◆ base64_encode() [2/2]

std::string base64_encode ( unsigned char const *  bytes_to_encode,
size_t  len,
bool  url = false 
)

Definition at line 117 of file base64.cpp.

◆ base64_encode_mime()

std::string base64_encode_mime ( std::string const &  s)

Definition at line 264 of file base64.cpp.

◆ base64_encode_pem()

std::string base64_encode_pem ( std::string const &  s)

Definition at line 259 of file base64.cpp.