How to add Base64 encoding and decoding in C

I found this page on the web while searching for something else but I thought this might be useful to others 🙂

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.


You can read more info and download the package on the url below: