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.
"plaintext_out"? "length_in"? for decode? The input is ASCII; the output may not be!
Simple, works perfectly. Thank you!