monotone

monotone Mtn Source Tree

Root/cryptopp/base64.h

1#ifndef CRYPTOPP_BASE64_H
2#define CRYPTOPP_BASE64_H
3
4#include "basecode.h"
5
6NAMESPACE_BEGIN(CryptoPP)
7
8//! Base64 Encoder Class
9class Base64Encoder : public SimpleProxyFilter
10{
11public:
12Base64Encoder(BufferedTransformation *attachment = NULL, bool insertLineBreaks = true, int maxLineLength = 72)
13: SimpleProxyFilter(new BaseN_Encoder(new Grouper), attachment)
14{
15IsolatedInitialize(MakeParameters("InsertLineBreaks", insertLineBreaks)("MaxLineLength", maxLineLength));
16}
17
18void IsolatedInitialize(const NameValuePairs &parameters);
19};
20
21//! Base64 Decoder Class
22class Base64Decoder : public BaseN_Decoder
23{
24public:
25Base64Decoder(BufferedTransformation *attachment = NULL)
26: BaseN_Decoder(GetDecodingLookupArray(), 6, attachment) {}
27
28void IsolatedInitialize(const NameValuePairs &parameters) {}
29
30private:
31static const int *GetDecodingLookupArray();
32};
33
34NAMESPACE_END
35
36#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status