Skip to content

htmlgod/base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base64

Simple header-only C++ library for Base64 encoding/decoding.

Reference - RFC 4648

Testing

Build tests:

# template is for header-only library by default
cmake -S . -B_build
cmake --build _build

Run tests:

cd _build && ctest
# or 
cmake --build _build --target hello_test
./_build/hello_test

Usage

#include <base64/base64.hpp>

auto encoded = base64::encode("foobar");
assert(encoded == "Zm9vYmFy");