ubinascii - Binary/ASCII Conversions
The module realizes the conversion between binary data and various ASCII encoding (bidirectional), and subsets of the corresponding CPython module. See CPython file binascii for more detailed information.
Constructor #
ubinascii.a2b_base64
#
This function decodes the data encoded by base64. When decoding, invalid characters inputed by base64 will be ignored, and the bytes object will be returned.
ubinascii.b2a_base64
#
Encodes binary data in base64 format and returns encoded data. The encoded data followed by a line break is represented as the bytes object.
ubinascii.hexlify
#
Converts the binary data to the hexadecimal character string.
Example
ubinascii.unhexlify
#
Converts the hexadecimal character string to the binary character string.
Example