diff --git a/rsa.py b/rsa.py old mode 100644 new mode 100755 index 1629339..734ff8d --- a/rsa.py +++ b/rsa.py @@ -188,7 +188,7 @@ def getPrime(bits): while True: #Byte order "little" or "big" does not matter here since we want a random number from os.urandom() x = int.from_bytes(os.urandom(int(bits/8)), byteOrder) - print(x, end="") + print('Trying: ', x, end="\n") if mr.is_prime(x): print("\nprime: ", x) return x @@ -325,7 +325,7 @@ def listKeys(): if key[D] == 0: check = "".strip() else: check = '\u2713' - print("%7s%7s%7s-bit" % (key[ID].strip(), check, key[N].bit_length())) + print("%10s%7s%7s-bit" % (key[ID].strip(), check, key[N].bit_length())) def exportKey(keyFileName): key = readKeyFile(keyFileName)