/***************************************************************************
                         cbase64.h  -  description
                             -------------------
    begin                : Tue Jul 09 2002
    copyright            : (C) 2002 by Mathias Küster
    email                : mathen@ketelhot.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef CBASE64_H
#define CBASE64_H

/**
  *@author Mathias Küster
  */

#include <dclib/cobject.h>

class CByteArray;

#include <dclib/dcos.h>

class DLL_EXPORT CBase64 : public CObject {

public:
	/** */
	CBase64();
	/** */
	virtual ~CBase64();
	/** */
	void Encode( unsigned char *out, const unsigned char *in, size_t len, size_t olen );
	/** */
	int Decode( CByteArray *out, CByteArray *in );
};

#endif
