Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/nacl/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/nacl/__pycache__/utils.cpython-38.pyc
U

O��g%	�@s�ddlZddlmZmZmZddlZddlmZeddd�ZGdd�de	�Z
Gdd	�d	�Ze	ed
�dd�Z
dee	d�dd�Zejfee	eje	d�dd�ZdS)�N)�
SupportsBytes�Type�TypeVar)�encoding�_EncryptedMessage�EncryptedMessage)�boundc@sdeZdZUdZeed<eed<eeeeeeed�dd��Z	e
ed�dd	��Ze
ed�d
d��ZdS)
rze
    A bytes subclass that holds a messaged that has been encrypted by a
    :class:`SecretBox`.
    �_nonce�_ciphertext)�cls�nonce�
ciphertext�combined�returncCs||�}||_||_|S�N)r	r
)rrr
r�obj�r�7/opt/cppython/lib/python3.8/site-packages/nacl/utils.py�_from_parts"szEncryptedMessage._from_parts)rcCs|jS)zX
        The nonce used during the encryption of the :class:`EncryptedMessage`.
        )r	��selfrrrr.szEncryptedMessage.noncecCs|jS)zP
        The ciphertext contained within the :class:`EncryptedMessage`.
        )r
rrrrr
5szEncryptedMessage.ciphertextN)
�__name__�
__module__�__qualname__�__doc__�bytes�__annotations__�classmethodrrr�propertyrr
rrrrrs
�c@seZdZeed�dd�ZdS)�StringFixer)rrcCst|���Sr)�str�	__bytes__rrrr�__str__>szStringFixer.__str__N)rrrrr r"rrrrr=sr)�bytes_inrcCs
|�d�S)N�ascii)�decode)r#rrr�bytes_as_stringBsr&� )�sizercCs
t�|�Sr)�os�urandom)r(rrr�randomFsr+)r(�seed�encoderrcCstj�||�}|�|�S)z�
    Returns ``size`` number of deterministically generated pseudorandom bytes
    from a seed

    :param size: int
    :param seed: bytes
    :param encoder: The encoder class used to encode the produced bytes
    :rtype: bytes
    )�naclZbindingsZrandombytes_buf_deterministic�encode)r(r,r-�raw_datarrr�randombytes_deterministicJsr1)r')r)�typingrrrZ
nacl.bindingsr.rrrrrr r&�intr+Z
RawEncoderZEncoderr1rrrr�<module>s$��

F1le Man4ger