e2k-encoding-utils

e2k-encoding-utils — Data-encoding utility functions

Synopsis




char*       e2k_base64_encode               (const guint8 *data,
                                             int len);
GByteArray* e2k_base64_decode               (const char *string);

Description

Details

e2k_base64_encode ()

char*       e2k_base64_encode               (const guint8 *data,
                                             int len);

Base64-encodes len bytes of data at data.

data : binary data
len : the length of data
Returns : the base64-encoded representation of data, which the caller must free.

e2k_base64_decode ()

GByteArray* e2k_base64_decode               (const char *string);

Decodes the base64-encoded data in string.

string : base64-encoded data
Returns : the binary data encoded in string