campy.io.base64helper module

Functions for encoding and decoding binary data in the base64 format.

For information on the base64 format, see:

It is a lightweight wrapper around the builtin base64 library that ships with Python.

campy.io.base64helper.encode(b)[source]

Encode bytes-like object b using the standard Base64 alphabet and return the encoded bytes.

b is the byte string to encode. The encoded byte string is returned.

campy.io.base64helper.decode(b)[source]

Decode bytes-like object or ASCII string s using the standard Base64 alphabet and return the decoded bytes.

b is the byte string to decode. The decoded byte string is returned.