123456789101112131415161718192021 |
- #ifndef ___BASE64_H___
- #define ___BASE64_H___
- #include <string>
- #include <vector>
- using namespace std;
- class CBase64
- {
- public:
- CBase64();
- ~CBase64();
- bool static Encode(const unsigned char *pIn, unsigned long uInLen, string& strOut);
- bool static Encode(const unsigned char *pIn, unsigned long uInLen, unsigned char *pOut, unsigned long *uOutLen);
- bool static Decode(const string& strIn, vector<unsigned char> &strOut);
- bool static Decode(const string& strIn, string &strOut);
- };
- #endif // ___BASE64_H___
|