Very fast and lightweight header-only base64 library. Without excess SIMD, dependencies. Include file and work with it.
Simple just coding.
Have fun!
- 2025 vogma Marco compilation fixes
#include <iostream>
#include <string>
#include "picobase64.h"
int main() {
std::string str = "John Doe with IBM 5100";
std::cout << b64encode(str); // Sm9obiBEb2Ugd2l0aCBJQk0gNTEwMA==
std::string base64_str = b64encode(str);
std::cout << b64decode(base64_str); // John Doe with IBM 5100
return 0;
}Repository base64 with collection benchmarks and tests was done by maintainer Gaspard Petit (gaspardpetit)
PicoBase64 is licensed under the (GNU General Public License 3.0)