From 06793f5fb7877fab208afddb0f91c157589a0486 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Sat, 18 Apr 2020 17:53:12 +0300 Subject: [PATCH] Updated list command output. --- rsa.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rsa.py b/rsa.py index db2c834..02ea1e2 100755 --- a/rsa.py +++ b/rsa.py @@ -235,14 +235,14 @@ def listKeys(): if len(local_keys) == 0: print("Cant find local keys.") return - print("ID PRIVATE") - print("________________") + print("ID PRIVATE SIZE") + print("-------------------------") for keyName in local_keys: key = readKeyFile(keyName) if key[D] == 0: check = "".strip() else: check = '\u2713' - print("{} {}\n".format(key[ID], check).strip()) + print("%7s%7s%7s-bit" % (key[ID].strip(), check, key[N].bit_length())) def exportKey(keyFileName): key = readKeyFile(keyFileName)