38#include "exceptions.hpp"
52 std::string decode(
const std::string & str)
const;
53 std::string encode(
const std::string & str)
const;
55 typedef char decoded_block[3];
56 typedef char encoded_block[4];
58 void small_decode(
const encoded_block & b64, decoded_block & out)
const;
59 void small_encode(
unsigned int num_bytes,
const decoded_block & bin, encoded_block & out)
const;
62 static std::string convert(
char a,
char b,
char c,
char d);
63 static std::string unconvert(
int num_char,
67 static unsigned int value64(
char a);
68 static char to_value64(
unsigned int val);
69 static void complement(std::string & ref);
implements the encoding to and decoding from base64
Definition: base64.hpp:43