Python binascii Functions

EditRocket provides the following information on binascii functions in the Python source code builder.

a2b_base64(string) - Convert a block of base64 data back to binary and return the binary data.

a2b_hex(hexstr) -

a2b_hqx(string) - Convert binhex4 formatted ASCII data to binary, without doing RLE-decompression.

a2b_qp(string[, header]) - Convert a block of quoted-printable data back to binary and return the binary data.

a2b_uu(string) - Convert a single line of uuencoded data back to binary and return the binary data.

b2a_base64(data) - Convert binary data to a line of ASCII characters in base64 coding.

b2a_hex(data) -

b2a_hqx(data) - Perform hexbin4 binary-to-ASCII translation and return the resulting string.

b2a_qp(data[, quotetabs, istext, header]) - Convert binary data to a line(s) of ASCII characters in quoted-printable encoding.

b2a_uu(data) - Convert binary data to a line of ASCII characters, the return value is the converted line, including a newline char.

crc32(data[, crc]) - Compute CRC-32, the 32-bit checksum of data, starting with an initial crc.

crc_hqx(data, crc) - Compute the binhex4 crc value of data, starting with an initial crc and returning the result.

rlecode_hqx(data) - Perform binhex4 style RLE-compression on data and return the result.

rledecode_hqx(data) - Perform RLE-decompression on the data, as per the binhex4 standard.