A85decode method is a part of python's Lib/base64.py module. This module provides functionality for encoding binary data to printable ASCII characters and decoding such encodings back to binary, read more about the module here.There are two interfaces provided by this module. A85decode method is a part of modern interface. The modern interface supports encoding bytes-like objects to ASCII bytes, and decoding bytes-like objects or strings containing ASCII to bytes.
a85decode
(b,*,foldspaces=False,adobe=False,ignorechars=b' \t\n\v')
!"#$%&'()*+,-./0123456789:;<=>?@
ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_
abcdefghijklmnopqrstu
>>> import base64
>>> encoded_string = b';IOHRDf$UqFE2)5B)'
>>> print(base64.a85decode(encoded_string))
b'Random String'
>>> encoded_string = b'y+9'
>>> print(base64.a85decode(encoded_string,foldspaces=True))
b' '
>>> encoded_string = b'<~;IOHRDf$UqFE2)5B)~>'
>>> print(base64.a85decode(encoded_string,adobe=True))
b'Random String'
>>> encoded_string = a =b';\nI\nO\nH\nR\nD\nf$\nUqF\nE\n2)\n5\nB)'
>>> print(base64.a85decode(encoded_string,ignorechars=b"\n"))
b'Random String'
ValueError: Ascii85 overflow
ValueError: Non-Ascii85 digit found: {
TypeError: argument should be a bytes-like object or ASCII string, not 'int'
TypeError: a85decode() missing 1 required positional argument: 'b'
Name | Views | Likes |
---|---|---|
Python tokenize detect_encoding | 666 | 3 |
Python base64 b64decode | 1929 | 4 |
Python base64 Introduction | 838 | 4 |
Python base64 b32encode | 719 | 4 |
Python tokenize open | 632 | 3 |
Python base64 urlsafe_b64encode | 943 | 5 |
Python base64 a85encode | 811 | 3 |
Python base64 decodebytes | 829 | 4 |
Python base64 decode | 854 | 4 |
Python base64 a85decode | 1007 | 4 |
Python base64 standard_b64encode | 865 | 4 |
Python tokenize TokenError | 658 | 3 |
Python base64 b32decode | 1543 | 3 |
Python base64 b16encode | 707 | 3 |
Python tokenize using CLI | 672 | 3 |
Python base64 standard_b64decode | 634 | 4 |
Python base64 b16decode | 879 | 4 |
Python base64 encode | 833 | 4 |
Python tokenize tokenize | 677 | 3 |
Python base64 urlsafe_b64decode | 903 | 4 |
Python base64 b85encode | 752 | 3 |
Python tokenize untokenize | 734 | 3 |
Python base64 b64encode | 863 | 4 |
Python tokenize Introduction | 661 | 4 |
Python base64 b85decode | 774 | 3 |
Python tokenize generate_tokens | 665 | 3 |
Python base64 encodebytes | 794 | 3 |
Comments