4 * base64 - base64 encoding and decoding (rfc4648).
6 * base64 encoding is used to encode data in a 7-bit clean manner.
7 * Commonly used for escaping data before encapsulation or transfer
12 * #include <ccan/base64/base64.h>
14 * int main(int argc, char *argv[])
16 * char *base64_encoded_string;
19 * // print the base64-encoded form of the program arguments
20 * for(i=1;i<argc;i++) {
21 * size_t unencoded_length = strlen(argv[i]);
22 * size_t encoded_length = base64_encoded_length(unencoded_length);
23 * base64_encoded_string = malloc(encoded_length);
24 * base64_encode(base64_encoded_string, encoded_length,
25 * argv[i], unencoded_length);
26 * printf("%s\n", base64_encoded_string);
27 * free(base64_encoded_string);
35 int main(int argc, char *argv[])