From c351efa716873d8a8a41898e88c44ff3b39f30df Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Mon, 20 Apr 2020 21:20:34 +0300 Subject: [PATCH] Print out n, e, d after key gen. --- rsa.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rsa.py b/rsa.py index 31377c5..1b9aaa4 100755 --- a/rsa.py +++ b/rsa.py @@ -31,6 +31,9 @@ def main(): if sys.argv[1] == "gen": ##rsa gen keyFileName = sys.argv[3] key = generateKeys(keyFileName, int(sys.argv[2])) + print("e: ", key[E]) + print("n: ", key[N]) + print("d: ", key[D]) printKey(key) try: saveKeyFile(key, keyFileName) @@ -324,4 +327,4 @@ def printHelp(): print("rsa print ") if __name__ == "__main__": - main() \ No newline at end of file + main()