https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/nacl/bindings/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/nacl/bindings/__pycache__/crypto_secretbox.cpython-310.pyc
o

��ab�@s�UddlmZddlmZmZddlmZe��Z	e
ed<e��Z
e
ed<e��Ze
ed<e��Ze
ed<e��Ze
ed<e��Ze
ed	<d
ededed
efdd�Zdededed
efdd�ZdS)�)�
exceptions)�ffi�lib)�ensure�crypto_secretbox_KEYBYTES�crypto_secretbox_NONCEBYTES�crypto_secretbox_ZEROBYTES�crypto_secretbox_BOXZEROBYTES�crypto_secretbox_MACBYTES�!crypto_secretbox_MESSAGEBYTES_MAX�message�nonce�key�returncC�t|�tkrt�d��t|�tkrt�d��dt|}t�dt|��}t�	||t|�||�}t
|dkdtjd�t�|t|��}|t
d�S)	z�
    Encrypts and returns the message ``message`` with the secret ``key`` and
    the nonce ``nonce``.

    :param message: bytes
    :param nonce: bytes
    :param key: bytes
    :rtype: bytes
    �Invalid key�
Invalid nonce��unsigned char[]rzEncryption failed��raisingN)�lenr�exc�
ValueErrorrrr�newr�crypto_secretboxr�CryptoError�bufferr	)rr
r�padded�
ciphertext�res�r!�@/usr/lib/python3/dist-packages/nacl/bindings/crypto_secretbox.pyrs


rrcCr)	z�
    Decrypt and returns the encrypted message ``ciphertext`` with the secret
    ``key`` and the nonce ``nonce``.

    :param ciphertext: bytes
    :param nonce: bytes
    :param key: bytes
    :rtype: bytes
    rrrrrz1Decryption failed. Ciphertext failed verificationrN)rrrrrr	rrr�crypto_secretbox_openrrrr)rr
rr�	plaintextr r!r!r"r#9s

�r#N)�naclrr�nacl._sodiumrr�nacl.exceptionsr�crypto_secretbox_keybytesr�int�__annotations__�crypto_secretbox_noncebytesr�crypto_secretbox_zerobytesr�crypto_secretbox_boxzerobytesr	�crypto_secretbox_macbytesr
�!crypto_secretbox_messagebytes_maxr�bytesrr#r!r!r!r"�<module>s(
�����

https://t.me/RX1948 - 2025