00001 //********************************************************************* 00002 //* C_Base64 - a simple base64 encoder and decoder. 00003 //* 00004 //* Copyright (c) 1999, Bob Withers - bwit@pobox.com 00005 //* 00006 //* This code may be freely used for any purpose, either personal 00007 //* or commercial, provided the authors copyright notice remains 00008 //* intact. 00009 //********************************************************************* 00010 // 00011 // converted to wxWindows by Frank Buß 00012 // 00013 00014 #ifndef BASE64_H 00015 #define BASE64_H 00016 00017 #include <wx/wx.h> 00018 00022 class wxBase64 00023 { 00024 public: 00031 static wxString Encode(const wxUint8* pData, size_t length); 00032 00038 static wxString Decode(const wxString& data); 00039 }; 00040 00041 #endif