예제 #1
0
파일: cli.py 프로젝트: cbraz/pomares
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 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))
예제 #3
0
파일: cli.py 프로젝트: cbraz/pomares
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)))
예제 #4
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)))