On this page
base64.b85encode
Prev: base64.b85decode | Up: base64 | Next: base64.decode
Rel: base64.a85decode, base64.a85encode, base64.b16decode, base64.b16encode
Ref: docs.python.org — base64.b85encode
Tags: #public #python3 #stdlib #base64
Import
import base64
from base64 import b85encode
Signature & Overview
base64.b85encode(b, pad=False)
Encode bytes-like object b in base85 format and return a bytes object.
Usage
import base64
enc = base64.b85encode(b"hello")
assert isinstance(enc, bytes) and base64.b85decode(enc) == b"hello"
Gotchas
- No padding characters: More compact than Base64 (~25% overhead), used by git binary patches.
REPL Inspect
from base64 import b85encode
help(b85encode)
Linked from
Related notes
- tuts/python3/stdlib_module/base64 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b85decode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/decode Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/a85decode Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/a85encode Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b16decode Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/b16encode Linked here; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib