I found this page on the web while searching for something else but I thought this might be useful to others 🙂
Overview
libb64 is a library of ANSI C routines for fast encoding/decoding data into and from a base64-encoded format. C++ wrappers are included, as well as the source code for standalone encoding and decoding executables.
Base64 uses a subset of displayable ASCII characters, and is therefore a useful encoding for storing binary data in a text file, such as XML, or sending binary data over text-only email.
Usage
1 2 3 4 5 6 7 |
#include <b64/encode.h> #include int main() { base64::encoder E; E.encode(std::cin, std::cout); return 0; } |
You can read more info and download the package on the url below: