This abstract class provides part of the functionality of the Base 64 encoding/decoding
This abstract class provides part of the functionality of the Base 64 encoding/decoding. The rest of the functionality is provided by the subclass implementors. Typically the clients will not deal with an instance of this class directly, instead they interact with the Base64 reference-count pointer.Usage try { string data = "1234567890"; string enc = Base64::encode(data); string dec = Base64::decode(enc); if (dec == enc) { cout << "** Base64 Encoding/Decoding WORKED **"; } else { cout << "!! Base64 Encoding/Decoding FAILED !!"; } } catch(Exception& ex) {.....}
void encodeInit()
void encodeUpdate(const string& data)
Error if the input buffer is too short
encodeUpdate(string, int, int) void encodeUpdate(const string& data, int offset, int len)
Error if the input buffer is too short
offset - int index in data to start reading bytes from
len - int number of bytes used to update the engine
doEncodeUpdate(string, int, int) string encode()
void decodeInit()
void decodeUpdate(const string& data)
Error if the input buffer is too short
SecurityException if decoding fails
decodeUpdate(string, int, int) void decodeUpdate(const string& data, int offset, int len)
Error if the input buffer is too short
SecurityException if decoding fails
offset - int index in data to start reading bytes from
len - int number of bytes used to update the engine
doDecodeUpdate(string, int, int) string decode()
SecurityException if decoding fails
Base64Impl()
decodeInit() virtual void doEncodeInit()
virtual void doDecodeInit()
virtual string doEncode()
virtual string doDecode()
virtual void doEncodeUpdate(const string& data, int offset, int len)
offset - int index in data to start reading bytes from
len - int number of bytes used to update the engine virtual void doDecodeUpdate(const string& enc, int offset, int len)
offset - int index in data to start reading bytes from
len - int number of bytes used to update the engine
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de