On this page
base64.z85encode
Prev: base64.z85decode | Up: base64
Rel: base64.a85decode, base64.a85encode, base64.b16decode, base64.b16encode
Ref: docs.python.org — base64.z85encode
Tags: #public #python3 #stdlib #base64
Import
import base64
from base64 import z85encode
Signature & Overview
base64.z85encode(s)
Encode bytes-like object b in z85 format and return a bytes object.
Usage
import base64
enc = base64.z85encode(b"1234")
assert len(enc) == 5
Gotchas
- Requires Python 3.13+: Input byte length must be a multiple of 4 (otherwise
ValueError).
REPL Inspect
from base64 import z85encode
help(z85encode)
Linked from
Related notes
- tuts/python3/stdlib_module/base64 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/base64/z85decode 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
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib