Base64 Encoding implementation in C Programming Language
Spec: https://datatracker.ietf.org/doc/html/rfc4648#page-5
So just copy cb64.h to your project, and you ready to go
$ mkdir build
$ cd build/
$ cmake ..
$ make
$ cd ..Run example binary
$ ./bin/cb64 ./testdata/octocat.png