Base64pp
A simple, correct Base64 encoder written in modern C++
Loading...
Searching...
No Matches
Namespaces | Functions
base64pp.h File Reference

This file defines the public functions for the base64pp library. More...

#include "base64pp_export.h"
#include <cstdint>
#include <optional>
#include <span>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for base64pp.h:

Go to the source code of this file.

Namespaces

namespace  base64pp
 base64pp API namespace
 

Functions

std::string BASE64PP_EXPORT base64pp::encode (std::span< std::uint8_t const > const input)
 This function will encode a blob of data into a base64 string.
 
std::optional< std::vector< std::uint8_t > > BASE64PP_EXPORT base64pp::decode (std::string_view const encoded_str)
 Decodes a base64 encoded string, returning an optional blob. If the decoding fails, it returns std::nullopt.
 

Detailed Description

This file defines the public functions for the base64pp library.