| Server IP : 172.67.131.151 / Your IP : 104.23.197.109 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/jwt/__pycache__/ |
Upload File : |
U
�b�[X � @ s� d Z ddlZddlZddlZejd dkZer8eZeZ ne
ZeZ ee fZzddlm
Z
mZ W n$ ek
r� ddlm
Z
mZ Y nX z
ejZW n ek
r� dd� ZY nX eedd�r�dd � Znd
d � ZdS )z�
The `compat` module provides support for backwards compatibility with older
versions of python, and compatibility wrappers around optional packages.
� N� )�Iterable�Mappingc C sH t | �t |�krdS d}t| |�D ]\}}|t|�t|�A O }q"|dkS )z�
Returns True if the two strings are equal, False otherwise.
The time taken is independent of the number of characters that match.
Fr )�len�zip�ord)Zval1Zval2�result�x�y� r �,/usr/lib/python3/dist-packages/jwt/compat.py�constant_time_compare! s r
�to_bytesc C s2 | }d}|dkr"|d? }|d7 }q| j |ddd�S )Nr � � ZbigF)Zsigned)r )�valZ remainingZbyte_lengthr r r �bytes_from_int3 s
r c C sB g }| r"t | d�\} }|�|� q|�� tjdt|� f|�� S )N� z%sB)�divmod�append�reverse�structZpackr )r ZbufZ remainderr r r r = s )�__doc__Zhmacr �sys�version_infoZPY3�strZ text_type�bytesZbinary_typeZunicodeZstring_typesZcollections.abcr r �ImportError�collectionsZcompare_digestr
�AttributeError�getattr�intr r r r r �<module> s*