HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python3.6/site-packages/zmq/utils/__pycache__/z85.cpython-36.pyc
3

VS�_��@sldZddlZddlZejddkZdZedd�ee�D��Zdd�e	d�D�ddd�Z
d
d�Zdd
�ZdS)z�Python implementation of Z85 85-bit encoding

Z85 encoding is a plaintext encoding for a bytestring interpreted as 32bit integers.
Since the chunks are 32bit, a bytestring must be a multiple of 4 bytes.
See ZMQ RFC 32 for details.


�N�sU0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#cCsg|]\}}||f�qS�r)�.0�idx�crr�/usr/lib64/python3.6/z85.py�
<listcomp>srcCsg|]}d|�qS)�Ur)r�irrrrs��cCs�t|�drtdt|���t|�d}tjd||�}g}x0|D](}x"tD]}|jt||d�qLWqBWtrzt|�Sdj	|�SdS)zencode raw bytes into Z85�z$length must be multiple of 4, not %iz>%dIr	�N)
�len�
ValueError�struct�unpack�_85s�append�Z85CHARS�PY3�bytes�join)Zrawbytes�nvalues�valuesZencoded�v�offsetrrr�encodes

rcCs�tr:t|t�r:y|jd�}Wntk
r8td��YnXt|�drVtdt|���t|�d}g}xTtdt|�d�D]@}d}x,tt	�D] \}}|t
||||7}q�W|j|�qxWtj
d|f|��S)z3decode Z85 bytes to raw bytes, accepts ASCII string�asciiz4string argument should contain only ASCII charactersrz(Z85 length must be multiple of 5, not %irz>%dI)r�
isinstance�strr�UnicodeEncodeErrorrr�range�	enumerater�Z85MAPrr�pack)Zz85bytesrrr
�value�jrrrr�decode,sr(���)
�__doc__�sysr�version_inforr�dictr#r$r"rrr(rrrr�<module>s