#ifndef __BASE64_H__ #define __BASE64_H__ #include class Base64 : public Base { public: static String encode(char * data, int len); static unsigned char * decode(const String & str_in, int * len_out); private: static String encode_block(unsigned char in_tab[3], int len); static int stri(char); static int decode_block(char s1, char s2, char s3, char s4, unsigned char * out_tab); }; #endif