tsukiji/crypto.py
def create_key():
    '''Generates and writes byte string with object of RSA key object.'''
    key = RSA.generate(2048)
    with open(KEYFILE_NAME, 'w') as f:
        f.write(key.exportKey('PEM'))
    return key
Generates and writes byte string with object of RSA key object.
Generates and writes byte string with object of RSA key object.
Generates and writes byte string with object of RSA key object .
def create_key():
    key = RSA.generate(2048)
    with open(KEYFILE_NAME, 'w') as f:
        f.write(key.exportKey('PEM'))
    return key
def create_key ( ) : key = RSA . generate ( 2048 ) with open ( KEYFILE_NAME , 'w' ) as f : f . write ( key . exportKey ( 'PEM' ) ) return key
Generates and writes byte string with object of RSA key object.
Generates and writes byte string with object of RSA key object .
'''Generates and writes byte string with object of RSA key object.'''