-
Notifications
You must be signed in to change notification settings - Fork 29
Home
superwills edited this page Apr 17, 2013
·
6 revisions
All you need is to #include "base64.h" into your C or C++ project.
int encodedAsciiLen ;
char* encodedAscii = base64( yourBinaryData, binaryDataLen, &encodedAsciiLen ) ;
int decodedLen ;
unsigned char* binaryData = unbase64( encodedAscii, encodedAsciiLen, &decodedLen ) ;
free( encodedAscii ) ;
free( binaryData ) ;
You do not need to import the unit tests.
Nibble And A Half is released under the zlib license.