class Base64
{
public:
static std::string encode(const std::vector<unsigned char>&);
static std::vector<unsigned char> decode(const std::string&);
static bool isBase64(char);
private:
static char encode(unsigned char);
static unsigned char decode(char);
};
1、对二进制数据块进行编码生成string
2、对string进行解码生成二进行制数据块