adafruit_binascii

Helpers for conversions between binary and ASCII

  • Author(s): Paul Sokolovsky, Brent Rubell

Implementation Notes

Hardware:

Software and Dependencies:

exception adafruit_binascii.Error

Exception raised on errors. These are usually programming errors.

adafruit_binascii.a2b_base64(b64_data)

Convert a block of base64 data back to binary and return the binary data.

Parameters:b64_data (str) – Base64 data.
adafruit_binascii.b2a_base64(bin_data)

Convert binary data to a line of ASCII characters in base64 coding.

Parameters:bin_data (str) – Binary data string, as bytes