On this page
base64.a85encode
Prev: base64.a85decode | Up: base64 | Next: base64.b16decode
Rel: base64.a85decode, base64.b16decode, base64.b16encode, base64.b32decode
Ref: docs.python.org — base64.a85encode
Tags: #public #python3 #stdlib #base64
Import
import base64
from base64 import a85encode
Signature & Overview
base64.a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False)
Encode bytes-like object b using Ascii85 and return a bytes object.
Usage
import base64
enc = base64.a85encode(b"hello", adobe=True)
assert enc.startswith(b"<~") and enc.endswith(b"~>")
Gotchas
- 25% overhead vs. Base64's 33%: Returns
bytes; decode to ASCIIstrif embedding in text.
REPL Inspect
from base64 import a85encode
help(a85encode)
Linked from
- tuts/python3/stdlib_module/base64
- tuts/python3/stdlib_module/base64/a85decode
- tuts/python3/stdlib_module/base64/b16decode
- tuts/python3/stdlib_module/base64/b16encode
- tuts/python3/stdlib_module/base64/b32decode
- tuts/python3/stdlib_module/base64/b32encode
- tuts/python3/stdlib_module/base64/b32hexdecode
- tuts/python3/stdlib_module/base64/b32hexencode
- tuts/python3/stdlib_module/base64/b64decode
- tuts/python3/stdlib_module/base64/b64encode
- tuts/python3/stdlib_module/base64/b85decode
- tuts/python3/stdlib_module/base64/b85encode
- tuts/python3/stdlib_module/base64/decode
- tuts/python3/stdlib_module/base64/decodebytes
- tuts/python3/stdlib_module/base64/encode
- tuts/python3/stdlib_module/base64/encodebytes
- tuts/python3/stdlib_module/base64/standard_b64decode
- tuts/python3/stdlib_module/base64/standard_b64encode
- tuts/python3/stdlib_module/base64/urlsafe_b64decode
- tuts/python3/stdlib_module/base64/urlsafe_b64encode
- tuts/python3/stdlib_module/base64/z85decode
- tuts/python3/stdlib_module/base64/z85encode
Related notes
- tuts/python3/stdlib_module/base64 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/a85decode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b16decode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b16encode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b32decode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b32encode links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b32hexdecode links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b32hexencode links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b64decode links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b64encode links to this page; shared tags: #stdlib