summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/ubinascii.rst
blob: c4825c204035300737aa64750b4403fb0cece5a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
:mod:`ubinascii` -- binary/ASCII conversions
============================================

.. module:: ubinascii
   :synopsis: binary/ASCII conversions

This module implements conversions between binary data and various
encodings of it in ASCII form (in both directions).

Functions
---------

.. function:: hexlify(data)

   Convert binary data to hexadecimal representation. Return bytes string.

.. function:: unhexlify(data)

   Convert hexadecimal data to binary representation. Return bytes string.
   (i.e. inverse of hexlify)

.. function:: a2b_base64(data)

   Convert Base64-encoded data to binary representation. Return bytes string.

.. function:: b2a_base64(data)

   Encode binary data in Base64 format. Return string.