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 : util.cpython-310.pyc
o j��`� � @ s. d Z ddlZddlmZ ddlZddd�ZdS )zUtility functions.� N)�OptionParser�returnc C s� t ddd�} | jdddddd � | jd dddd d � | jdddddd� | jdddddd� | �tj�\}}|jratd|j|jf tjd� t |jd��}|� � }W d � n1 s[w Y ntd|j tjd� tj� � �d�}t |�tksJ t |���tjj�||j�}tj�|j|j�}|�|j�}|jr�td|j|jf tjd� t |jd��}|�|� W d � dS 1 s�w Y dS td|j tjd� tj�|�d�� dS ) z=Reads a private key and outputs the corresponding public key.zusage: %prog [options]z�Reads a private key and outputs the corresponding public key. Both private and public keys use the format described in PKCS#1 v1.5)�usage�descriptionz-iz--input� infilename�stringz1Input filename. Reads from stdin if not specified)�dest�type�helpz-oz--output�outfilenamez2Output filename. Writes to stdout of not specifiedz--inform�informz!key format of input - default PEM)�PEM�DERr )r r �choices�defaultz --outform�outformz"key format of output - default PEMz(Reading private key from %s in %s format)�file�rbNz+Reading private key from stdin in %s format�asciiz%Writing public key to %s in %s format�wbz)Writing public key to stdout in %s format)r � add_option� parse_args�sys�argvr �printr �stderr�open�read�stdin�encoder �bytes�rsa�key� PrivateKey� load_pkcs1� PublicKey�n�e� save_pkcs1r r �write�stdout�decode) �parser�cli�cli_args�infile�in_data�priv_key�pub_key�out_data�outfile� r5 �*/usr/lib/python3/dist-packages/rsa/util.py�private_to_public st ������ ���"�r7 )r N)�__doc__r �optparser �rsa.keyr! r7 r5 r5 r5 r6 �<module> s
Close