// Base64.h: interface for the CBase64 class.
//////////////////////////////////////////////////////////////////////
#ifndef __BASE64__H__INCLUDED__
#define __BASE64__H__INCLUDED__
// CBase64 (64编码)
class CBase64
{
public:
CBase64();
virtual ~CBase64();
int Decode( LPCTSTR pszDecoding, LPTSTR pszOutput, int nSize ) ;
int Encode( LPCTSTR pszEncoding, LPTSTR pszOutput, int nSize ) ;
int GetOutSize( int nSize , BOOL bEncode);
private:
ReadBits( LPCTSTR pszEncoding,int nSize, int nIndex);
int m_nInSize;
int m_nOutSize;
};
#endif // __BASE64__H__INCLUDED__
// Base64.cpp: implementation of the CBase64 class.
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Base64.h"