A header-only Base64 encoder/decoder.
More...
#include <string>
#include <string_view>
#include <vector>
#include <array>
#include <cstdint>
Go to the source code of this file.
A header-only Base64 encoder/decoder.
- Author
- The Emacs Cat
- Date
- 2026-01-04
◆ decode()
| std::vector< uint8_t > tec::base64::decode |
( |
std::string_view |
data | ) |
|
|
inline |
Decodes a Base64 string into a vector of bytes.
◆ encode()
| std::string tec::base64::encode |
( |
std::string_view |
data | ) |
|
|
inline |
Encodes raw binary data into a Base64 string.
◆ is_valid()
| bool tec::base64::is_valid |
( |
std::string_view |
data | ) |
|
|
inline |
Validates whether a string is a properly formatted Base64 string.
◆ chars
| constexpr std::string_view tec::base64::chars |
|
inlineconstexpr |
Initial value:=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"