ok
Direktori : /opt/imunify360/venv/lib64/python3.11/site-packages/jwt/__pycache__/ |
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/jwt/__pycache__/utils.cpython-311.pyc |
� f��f� � �< � d dl Z d dlZd dlmZmZ d dlmZ d dlmZm Z n # e $ r eZY nw xY wdeeef defd�Z deeef defd �Zdedefd �Zdedefd�Zdeeef defd �Zdededefd�Zdedefd�Zdedefd�Zdededefd�Zdededefd�ZdS )� N)�Any�Union)� EllipticCurve)�decode_dss_signature�encode_dss_signature�value�returnc � � t | t � � r| � d� � S t | t � � r| S t d� � �)Nzutf-8zExpected a string value)� isinstance�str�encode�bytes� TypeError)r s �i/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/jwt/utils.py�force_bytesr sL � ��%���� 3��|�|�G�$�$�$� �E�5� !� !� 3����1�2�2�2� �inputc �� � t | t � � r| � d� � } t | � � dz }|dk r| dd|z z z } t j | � � S )N�ascii� r � =)r r r �len�base64�urlsafe_b64decode)r �rems r �base64url_decoder sa � ��%���� &����W�%�%�� �e�*�*�q�.�C� �Q�w�w� ���S��!�!���#�E�*�*�*r c �R � t j | � � � dd� � S )Nr r )r �urlsafe_b64encode�replace)r s r �base64url_encoder $ s# � ��#�E�*�*�2�2�4��=�=�=r �valc � � | dk rt d� � �t | � � }t |� � dk rd}t |� � S )Nr zMust be a positive integer� )� ValueError�bytes_from_intr r )r! � int_bytess r �to_base64url_uintr'