Encode bytes-like object b in z85 format and return a bytes object.
(s)
| 509 | _z85_encode_translation = bytes.maketrans(_b85alphabet, _z85alphabet) |
| 510 | |
| 511 | def z85encode(s): |
| 512 | """Encode bytes-like object b in z85 format and return a bytes object.""" |
| 513 | return b85encode(s).translate(_z85_encode_translation) |
| 514 | |
| 515 | def z85decode(s): |
| 516 | """Decode the z85-encoded bytes-like object or ASCII string b |