Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
rsa /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.cpython-310.pyc
1.01
KB
-rw-r--r--
_compat.cpython-310.pyc
1.28
KB
-rw-r--r--
asn1.cpython-310.pyc
1.37
KB
-rw-r--r--
cli.cpython-310.pyc
8.87
KB
-rw-r--r--
common.cpython-310.pyc
4.15
KB
-rw-r--r--
core.cpython-310.pyc
1.25
KB
-rw-r--r--
key.cpython-310.pyc
24.6
KB
-rw-r--r--
parallel.cpython-310.pyc
1.84
KB
-rw-r--r--
pem.cpython-310.pyc
2.77
KB
-rw-r--r--
pkcs1.cpython-310.pyc
12.18
KB
-rw-r--r--
pkcs1_v2.cpython-310.pyc
2.56
KB
-rw-r--r--
prime.cpython-310.pyc
3.76
KB
-rw-r--r--
randnum.cpython-310.pyc
1.7
KB
-rw-r--r--
transform.cpython-310.pyc
1.79
KB
-rw-r--r--
util.cpython-310.pyc
1.93
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : parallel.cpython-310.pyc
o j��` � @ s� d Z ddlZddlmZ ddlZddlZdededdfdd�Z ded edefd d�Z dgZedkr^e d � ddlZed�D ]Ze�� \ZZerI ned dkrWerWe de � q=e d� dS dS )z�Functions for parallel computation on multiple cores. Introduced in Python-RSA 3.1. .. note:: Requires Python 2.6 or newer. � N)� Connection�nbits�pipe�returnc C s* t j�| �}t j�|�r|�|� d S q)N)�rsa�randnum�read_random_odd_int�prime�is_prime�send)r r �integer� r �./usr/lib/python3/dist-packages/rsa/parallel.py�_find_prime s �r �poolsizec s� t jdd�\}�z#� �fdd�t|�D �}|D ]}|�� q|�� }W |�� ��� n |�� ��� w |D ]}|�� q7|S )aU Returns a prime number that can be stored in 'nbits' bits. Works in multiple threads at the same time. >>> p = getprime(128, 3) >>> rsa.prime.is_prime(p-1) False >>> rsa.prime.is_prime(p) True >>> rsa.prime.is_prime(p+1) False >>> from rsa import common >>> common.bit_size(p) == 128 True F)�duplexc s g | ]}t jt� �fd ��qS ))�target�args)�mp�Processr )�.0�_�r � pipe_sendr r � <listcomp>A s zgetprime.<locals>.<listcomp>)r �Pipe�range�start�recv�close� terminate)r r � pipe_recv�procs�p�resultr r r �getprime* s � r% �__main__z'Running doctests 1000x or until failure�d � z%i timesz Doctests done)�__doc__�multiprocessingr �multiprocessing.connectionr � rsa.primer �rsa.randnum�intr r% �__all__�__name__�print�doctestr �count�testmod�failures�testsr r r r �<module> s( (��
Close