| Server IP : 172.67.131.151 / Your IP : 104.23.243.115 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 : /usr/lib/python3/dist-packages/nacl/__pycache__/ |
Upload File : |
U
�֫[� � @ sZ d dl mZmZmZ d dlZd dlZG dd� de�ZG dd� de�Z dd� Z
dd
d�ZdS )
� )�absolute_import�division�print_functionNc @ s4 e Zd ZdZedd� �Zedd� �Zedd� �ZdS ) �EncryptedMessageze
A bytes subclass that holds a messaged that has been encrypted by a
:class:`SecretBox`.
c C s | |�}||_ ||_|S �N)�_nonce�_ciphertext)�cls�nonce�
ciphertextZcombined�obj� r
�,/usr/lib/python3/dist-packages/nacl/utils.py�_from_parts s zEncryptedMessage._from_partsc C s | j S )zX
The nonce used during the encryption of the :class:`EncryptedMessage`.
)r ��selfr
r
r r
# s zEncryptedMessage.noncec C s | j S )zP
The ciphertext contained within the :class:`EncryptedMessage`.
)r r r
r
r r * s zEncryptedMessage.ciphertextN) �__name__�
__module__�__qualname__�__doc__�classmethodr �propertyr
r r
r
r
r r s
r c @ s e Zd Zdd� ZdS )�StringFixerc C s t jrt| �� �S | �� S d S r )�six�PY3�str� __bytes__r r
r
r �__str__4 s zStringFixer.__str__N)r r r r r
r
r
r r 2 s r c C s t jr| �d�S | S d S )N�ascii)r r �decode)Zbytes_inr
r
r �bytes_as_string; s
r � c C s
t �| �S r )�os�urandom)�sizer
r
r �randomB s r% )r! )Z
__future__r r r r"