From 739bdeb0fb248ef53da5b2f61b99d804c7dac900 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 30 Apr 2007 16:25:46 +0000 Subject: Base64 added into the mess. --- include/Base64.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/Base64.h (limited to 'include') diff --git a/include/Base64.h b/include/Base64.h new file mode 100644 index 0000000..122f726 --- /dev/null +++ b/include/Base64.h @@ -0,0 +1,17 @@ +#ifndef __BASE64_H__ +#define __BASE64_H__ + +#include + +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 -- cgit v1.2.3