nanohttp-base64.h File Reference

Go to the source code of this file.


void base64_encode_string (const unsigned char *instr, unsigned char *outstr)
void base64_decode_string (const unsigned char *instr, unsigned char *outstr)

Detailed Description

Base64 data encoding

Base encoding of data is used in many situations to store or transfer data in environments that, perhaps for legacy reasons, are restricted to US-ASCII data. Base64 encoding can also be used in new applications that do not have legacy restrictions, simply because it makes it possible to manipulate objects with text editors.

In the past, different applications have had different requirements and thus sometimes implemented base encodings in slightly different ways. Today, protocol specifications sometimes use base encodings in general, and "base64" in particular, without a precise description or reference. Multipurpose Internet Mail Extensions (MIME) is often used as a reference for base64 without considering the consequences for line-wrapping or non-alphabet characters.

H. Ronsdorf
See also:

Definition in file nanohttp-base64.h.

Function Documentation

void base64_decode_string const unsigned char *  instr,
unsigned char *  outstr

decode a base64 encoded string (maybe broken...)

Definition at line 92 of file nanohttp-base64.c.

void base64_encode_string const unsigned char *  instr,
unsigned char *  outstr

Base64 encodes a NUL terminated array of characters.

instr Pointer to the input string.
outstr Pointer to the output destination.
See also:

Definition at line 50 of file nanohttp-base64.c.

Generated on Thu Jan 25 23:36:03 2007 for csoap by  doxygen 1.4.6