Linux ams-business-5.hostwindsdns.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
LiteSpeed
Server IP : 23.254.231.17 & Your IP : 216.73.216.90
Domains :
Cant Read [ /etc/named.conf ]
User : uxvsuhne
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
rsa /
__pycache__ /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.cpython-36.opt-1.pyc
1.03
KB
-rw-r--r--
2023-07-18 15:58
__init__.cpython-36.pyc
1.03
KB
-rw-r--r--
2023-07-18 15:58
asn1.cpython-36.opt-1.pyc
1.32
KB
-rw-r--r--
2023-07-18 15:58
asn1.cpython-36.pyc
1.32
KB
-rw-r--r--
2023-07-18 15:58
cli.cpython-36.opt-1.pyc
8.46
KB
-rw-r--r--
2023-07-18 15:58
cli.cpython-36.pyc
8.63
KB
-rw-r--r--
2023-07-18 15:58
common.cpython-36.opt-1.pyc
4.12
KB
-rw-r--r--
2023-07-18 15:58
common.cpython-36.pyc
4.12
KB
-rw-r--r--
2023-07-18 15:58
core.cpython-36.opt-1.pyc
1.22
KB
-rw-r--r--
2023-07-18 15:58
core.cpython-36.pyc
1.22
KB
-rw-r--r--
2023-07-18 15:58
key.cpython-36.opt-1.pyc
24.76
KB
-rw-r--r--
2023-07-18 15:58
key.cpython-36.pyc
24.76
KB
-rw-r--r--
2023-07-18 15:58
parallel.cpython-36.opt-1.pyc
1.8
KB
-rw-r--r--
2023-07-18 15:58
parallel.cpython-36.pyc
1.8
KB
-rw-r--r--
2023-07-18 15:58
pem.cpython-36.opt-1.pyc
2.74
KB
-rw-r--r--
2023-07-18 15:58
pem.cpython-36.pyc
2.74
KB
-rw-r--r--
2023-07-18 15:58
pkcs1.cpython-36.opt-1.pyc
12.2
KB
-rw-r--r--
2023-07-18 15:58
pkcs1.cpython-36.pyc
12.29
KB
-rw-r--r--
2023-07-18 15:58
pkcs1_v2.cpython-36.opt-1.pyc
2.51
KB
-rw-r--r--
2023-07-18 15:58
pkcs1_v2.cpython-36.pyc
2.51
KB
-rw-r--r--
2023-07-18 15:58
prime.cpython-36.opt-1.pyc
3.71
KB
-rw-r--r--
2023-07-18 15:58
prime.cpython-36.pyc
3.75
KB
-rw-r--r--
2023-07-18 15:58
randnum.cpython-36.opt-1.pyc
1.66
KB
-rw-r--r--
2023-07-18 15:58
randnum.cpython-36.pyc
1.66
KB
-rw-r--r--
2023-07-18 15:58
transform.cpython-36.opt-1.pyc
1.75
KB
-rw-r--r--
2023-07-18 15:58
transform.cpython-36.pyc
1.75
KB
-rw-r--r--
2023-07-18 15:58
util.cpython-36.opt-1.pyc
1.82
KB
-rw-r--r--
2023-07-18 15:58
util.cpython-36.pyc
1.87
KB
-rw-r--r--
2023-07-18 15:58
Save
Rename
3 �Cb` � @ s2 d Z ddlZddlmZ ddlZdd�dd�ZdS )zUtility functions.� N)�OptionParser)�returnc C s� t ddd�} | jdddddd � | jd dddd d � | jdddd dd� | jdddd!dd� | jtj�\}}|jr�td|j|jf tjd� t |jd��}|j � }W dQ R X n$td|j tjd� tjj � jd�}t |�tks�tt |���tjjj||j�}tjj|j|j�}|j|j�}|j�r`td|j|jf tjd� t |jd��}|j|� W dQ R X n&td|j tjd� tjj|jd�� 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)Zusage�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�DER)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 r )r r )r Z add_option� parse_args�sys�argvr �printr �stderr�open�read�stdin�encoder �bytes�AssertionError�rsa�keyZ PrivateKeyZ load_pkcs1Z PublicKey�n�eZ save_pkcs1r r �write�stdout�decode) �parserZcliZcli_argsZinfileZin_dataZpriv_keyZpub_keyZout_dataZoutfile� r( �/usr/lib/python3.6/util.py�private_to_public s` r* )�__doc__r Zoptparser Zrsa.keyr r* r( r( r( r) �<module> s