tsukiji/crypto.py
def retrieve_key():
    '''
    Reads an exported key-bytestring from file.
    If the file does not exist, create one.
    Returns an RSA key object.
    '''
    if not os.path.isfile(KEYFILE_NAME):
        return create_key()

    with open(KEYFILE_NAME, 'r') as f:
        key = RSA.importKey(f.read())
        return key

    Reads an exported key-bytestring from file.
    If the file does not exist, create one.
    Returns an RSA key object.
    
Reads an exported key-bytestring from file.
If the file does not exist, create one.
Returns an RSA key object.
Reads an exported key - bytestring from file . If the file does not exist create one . Returns an RSA key object .
def retrieve_key():
    if not os.path.isfile(KEYFILE_NAME):
        return create_key()
    with open(KEYFILE_NAME, 'r') as f:
        key = RSA.importKey(f.read())
        return key
def retrieve_key ( ) : if not os . path . isfile ( KEYFILE_NAME ) : return create_key ( ) with open ( KEYFILE_NAME , 'r' ) as f : key = RSA . importKey ( f . read ( ) ) return key
Reads an exported key-bytestring from file.
Reads an exported key - bytestring from file .
'''
    Reads an exported key-bytestring from file.
    If the file does not exist, create one.
    Returns an RSA key object.
    '''