Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/secretstorage/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/secretstorage/__pycache__/dhcrypto.cpython-310.pyc
o

��!`q	�@sjdZddlZddlZddlZddlmZddlmZdZde	de
fdd	�Ze	�ed
�Z
Gdd�de�ZdS)
z�This module contains needed classes, functions and constants
to implement dh-ietf1024-sha256-aes128-cbc-pkcs7 secret encryption
algorithm.�N)�sha256)�Optional)��rrrrrrr�������!�h���4�����b��������)��N���g���tr����;���"�Q�Jr�y�r�����������:�C��0�+�
�m���_��7�O���5r5r5r$r�E�����vr�^�~r���L�B��rr9���krr�\�rD��rH���8rI��Z����rS�$��|�K����I�(�fr$��r[�S�rrrrrrrr�number�returncCs|�t�|��d�d�S)Nr�big)�to_bytes�math�ceil�
bit_length)rb�ri�8/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py�int_to_bytessrkrdc@s(eZdZddd�Zdeddfdd�ZdS)	�SessionrcNcCs:d|_d|_d|_t�t�d�d�|_td|jt	�|_
dS)NTrrdr)�object_path�aes_key�	encrypted�int�
from_bytes�os�urandom�my_private_key�pow�
DH_PRIME_1024�
my_public_key)�selfririrj�__init__#s
zSession.__init__�server_public_keycCsdt||jt�}t|�}ddt|�|}d}t�||t���}t�|dt���}|dd�|_	dS)N�rs ��)
rurtrvrk�len�hmac�newr�digestrn)rxrz�common_secret_int�
common_secret�salt�pseudo_random_key�output_blockririrj�set_server_public_key+s�zSession.set_server_public_key)rcN)�__name__�
__module__�__qualname__ryrpr�riririrjrl"s
rl)�__doc__rrfrr�hashlibr�typingr�DH_PRIME_1024_BYTESrp�bytesrkrqrv�objectrlriririrj�<module>s

Spamworldpro Mini