#ifndef _BASE64_H_ #define _BASE64_H_ /** * @brief: base64 encode * @aug: bindata--unsigned char *,[input aug], need encod buffer * binlength--int, [input aug], the length of need encod buffer * base64--const char *, [input aug], after encoded content * @return: point to the decoded buffer */ char * base64_encode( unsigned char * bindata, char * base64, int binlength ); /** * @brief: base64 decode * @aug: base64--const char *, [input aug], need decode content * bindata--unsigned char *,[input aug], after decoded buffer * @return: the length of the decoded buffer */ int base64_decode( char * base64, unsigned char * boutdata ); int get_base64_size(int size); #endif // BASE64_H