Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
rsa
/
File Content:
cli.pyc
� 5��Vc @� ss d Z d d l m Z m Z d d l Z d d l Z d d l m Z d d l Z d d l Z d d l Z e e j j j � � Z d � Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ e � Z e � Z e � Z e � Z e � Z e � Z d S( sW Commandline scripts. These scripts are called by the executables defined in setup.py. i����( t with_statementt print_functionN( t OptionParserc C� s" t d d d d � } | j d d d d d �| j d d d d d d �| j d d d d d d d �| j t j d � \ } } t | � d k r� | j � t d � � n y t | d � } WnB t k r| j � t d | d d t j �t d � � n Xt d | d t j �t j | � \ } } | j r�t d | j d t j �| j d | j � } t | j d � � } | j | � Wd QXn | j d | j � } | j r�t d | j d t j �t | j d � � } | j | � Wd QXn# t d d t j �t j j | � d S( s Key generator.t usages usage: %prog [options] keysizet descriptions. Generates a new RSA keypair of "keysize" bits.s --puboutt typet stringt helps� Output filename for the public key. The public key is not saved if this option is not present. You can use pyrsa-priv2pub to create the public key file later.s -os --outs` Output filename for the private key. The key is written to stdout if this option is not present.s --forms7 key format of the private and public keys - default PEMt choicest PEMt DERt defaulti i s Not a valid number: %st files Generating %i-bit keys Writing public key to %st formatt wbNs Writing private key to %ss Writing private key to stdout( R R ( R t add_optiont parse_argst syst argvt lent print_helpt SystemExitt intt ValueErrort printt stderrt rsat newkeyst puboutt save_pkcs1t formt opent writet outt stdout( t parsert clit cli_argst keysizet pub_keyt priv_keyt datat outfile( ( s+ /usr/lib/python2.7/site-packages/rsa/cli.pyt keygen# sB t CryptoOperationc B� s� e Z d Z e j Z d Z d Z d Z d Z d Z d Z d Z d Z d Z e Z e j Z d � Z e j d d � � Z d � Z d � Z d � Z d � Z d � Z RS( s9 CLI callable that operates with input, output, and a key.t publics'