403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/openid/store/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/openid/store/__pycache__/nonce.cpython-311.pyc
�

|=�^���gd�ZddlmZddlmZmZmZmZddlmZddl	Z	e	j
e	jzZdZ
dZed��Zd	�Ze
dfd
�Zdd�ZdS)
)�split�mkNonce�checkTimestamp�)�	cryptutil)�strptime�strftime�gmtime�time)�timegmNiPFz%Y-%m-%dT%H:%M:%SZz0000-00-00T00:00:00Zc���|dt�}	tt|t����}n#t$rd}YnwxYw|dkrtd���||td�fS)aZExtract a timestamp from the given nonce string

    @param nonce_string: the nonce from which to extract the timestamp
    @type nonce_string: str

    @returns: A pair of a Unix timestamp and the salt characters
    @returntype: (int, str)

    @raises ValueError: if the nonce does not start with a correctly
        formatted time string
    N���rztime out of range)�time_str_lenrr�time_fmt�AssertionError�
ValueError)�nonce_string�
timestamp_str�	timestamps   �4/usr/lib/python3/dist-packages/openid/store/nonce.pyrrs���!��,��/�M���8�M�8�<�<�=�=�	�	�������	�	�	������1�}�}��,�-�-�-��l�<�=�=�1�1�1s�"4�A�Ac��	t|��\}}|�t��}||z
}||z}||cxko|kncS#t$rYdSwxYw)a8Is the timestamp that is part of the specified nonce string
    within the allowed clock-skew of the current time?

    @param nonce_string: The nonce that is being checked
    @type nonce_string: str

    @param allowed_skew: How many seconds should be allowed for
        completing the request, allowing for clock skew.
    @type allowed_skew: int

    @param now: The current time, as a Unix timestamp
    @type now: int

    @returntype: bool
    @returns: Whether the timestamp is correctly formatted and within
        the allowed skew of the current time.
    NF)rr
r)r�allowed_skew�now�stamp�_�past�futures       rrr-s���$'���&�&���q��;��&�&�C��\�!���|�#���u�&�&�&�&��&�&�&�&�&�������u�u����s�>�
A�Ac��tjdt��}|�t��}nt|��}t	t
|��}||zS)aGenerate a nonce with the current timestamp

    @param when: Unix timestamp representing the issue time of the
        nonce. Defaults to the current time.
    @type when: int

    @returntype: str
    @returns: A string that should be usable as a one-way nonce

    @see: time
    �)r�randomString�NONCE_CHARSr	rr)�when�salt�t�time_strs    rrrRsJ���!�!�[�1�1�D��|��H�H����4�L�L����!�$�$�H��d�?��)N)�__all__�openidrr
rrr	�calendarr�string�
ascii_letters�digitsr �SKEWr�lenrrrr�r%r�<module>r/s�������������1�1�1�1�1�1�1�1�1�1�1�1�������
�
�
�
��"�V�]�2��
�����s�)�*�*��2�2�2�,/3��"'�"'�"'�"'�J�����r%

Youez - 2016 - github.com/yon3zu
LinuXploit