-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinascii.py
68 lines (52 loc) · 1.64 KB
/
binascii.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
"""
Module: 'binascii' on esp32 1.11.0
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-580-g973f68780 on 2019-11-17', machine='ESP32 module with ESP32')
# Stubber: 1.3.2
def a2b_base64(data):
"""
Decode base64-encoded data, ignoring invalid characters in the input. Conforms to RFC 2045 s.6.8. Returns a bytes object.
Parameters
----------
- data
http://docs.micropython.org/en/latest/library/ubinascii.html#ubinascii.a2b_base64
"""
pass
def b2a_base64(data):
"""
Encode binary data in base64 format, as in RFC 3548. Returns the encoded data followed by a newline character, as a bytes object.
Parameters
----------
- data
http://docs.micropython.org/en/latest/library/ubinascii.html#ubinascii.b2a_base64
"""
pass
def crc32(data, crc):
"""
Compute CRC-32, the 32-bit checksum of data, starting with an initial crc
Parameters
----------
- data : a bytes-like object
- [crc] int : initial crc sum
"""
pass
def hexlify(data, sep):
"""
Convert binary data to hexadecimal representation. Returns bytes string.
Parameters
----------
- data
- [sep]
If additional argument, sep is supplied, it is used as a separator between hexadecimal values.
http://docs.micropython.org/en/latest/library/ubinascii.html#ubinascii.hexlify
"""
pass
def unhexlify(data):
"""
Convert hexadecimal data to binary representation. Returns bytes string. (i.e. inverse of hexlify)
Parameters
----------
- data
http://docs.micropython.org/en/latest/library/ubinascii.html#ubinascii.unhexlify
"""
pass