bpo-31116: Add Z85 variant to base64 (GH-30598)

Z85  specification: https://rfc.zeromq.org/spec/32/
This commit is contained in:
Matan Perelman 2024-02-25 19:17:54 +02:00 committed by GitHub
parent 9402ea63f7
commit c40b5b97fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 141 additions and 2 deletions

View file

@ -244,6 +244,24 @@ The modern interface provides:
.. versionadded:: 3.4
.. function:: z85encode(s)
Encode the :term:`bytes-like object` *s* using Z85 (as used in ZeroMQ)
and return the encoded :class:`bytes`. See `Z85 specification
<https://rfc.zeromq.org/spec/32/>`_ for more information.
.. versionadded:: 3.13
.. function:: z85decode(s)
Decode the Z85-encoded :term:`bytes-like object` or ASCII string *s* and
return the decoded :class:`bytes`. See `Z85 specification
<https://rfc.zeromq.org/spec/32/>`_ for more information.
.. versionadded:: 3.13
The legacy interface:
.. function:: decode(input, output)