/***************************************************************************
                         cbase32.h  -  description
                             -------------------
    begin                : Sat Apr 24 2004
    copyright            : (C) 2004 by Mathias Küster
    email                : mathen@users.berlios.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 CBASE32_H
#define CBASE32_H

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

#include <dclib/dcos.h>
#include <dclib/core/cobject.h>
#include <dclib/core/cstring.h>

class CByteArray;

class DLL_EXPORT CBase32 : public CObject {

public:
	/** */
	CBase32();
	/** */
	virtual ~CBase32();

	/** */
	void Encode( CByteArray * dst, CByteArray * src );
	/** */
	CString Encode( CString string );
	/** */
	int Decode( CByteArray * dst, CByteArray * src );
	/** */
	int Decode( CByteArray * dst, CString * string );
};

#endif
