Пример #1
0
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))
Пример #2
0
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)))