def about(): keyobj = crypto.load_key(config.key_file) print('key_file:', config.key_file) print('public_key:', crypto.pubkey_base64(keyobj)) print('public_sum:', crypto.pubkey_sum(keyobj))
def keypairs(dirname): """Lists keypair files in keypath""" for f in os.listdir(config.key_path): keyobj_path = os.path.join(config.key_path, f) keyobj = crypto.load_key(keyobj_path) print('{}: {}'.format(f, crypto.pubkey_base64(keyobj)))