text: #ifndef BASE64_H_
  #define BASE64_H_
  
  
  #include <stdint.h>
  #include <stdlib.h>
  
  /* Credit : StackOverflow, cannot find the link to credit the user. */
  
  static char encoding_table[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  	'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
  	'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
  	'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
  	'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
  	'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  	'w', 'x', 'y', 'z', '0', '1', '2', '3',
  '4', '5', '6', '7', '8', '9', '+', '/'};
  static char* decoding_table = NULL;
  static int mod_table[] = {0, 2, 1};
  
  
  char* base64_encode(const unsigned char *data, size_t input_length, size_t *output_length);
  
  unsigned char* base64_decode(const char *data, size_t input_length, size_t *output_length);
  
  unsigned char* base64_decode_cleanup(const char *data, size_t input_length, size_t *output_length);
  
  void build_decoding_table();
  
  void base64_cleanup();
  
  
  #endif /* BASE64_H_ */