This commit is contained in:
HeshamTB 2020-04-21 07:41:53 +03:00
commit 9738da7dca
Signed by: Hesham
GPG Key ID: 74876157D199B09E

3
rsa.py
View File

@ -31,6 +31,9 @@ def main():
if sys.argv[1] == "gen": ##rsa gen <keysize> <keyname>
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)