blob: 122f726994924ac2f0fce1851b667875a0852b72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef __BASE64_H__
#define __BASE64_H__
#include <Exceptions.h>
class Base64 : public Base {
public:
static String encode(char * data, int len);
static unsigned char * decode(const String & str_in, int * len_out);
private:
static String encode_block(unsigned char in_tab[3], int len);
static int stri(char);
static int decode_block(char s1, char s2, char s3, char s4, unsigned char * out_tab);
};
#endif
|