Merge branch 'master' of https://apollo-server.ddns.net/gitea/Hesham/hesham-rsa
This commit is contained in:
commit
9738da7dca
3
rsa.py
3
rsa.py
@ -31,6 +31,9 @@ def main():
|
|||||||
if sys.argv[1] == "gen": ##rsa gen <keysize> <keyname>
|
if sys.argv[1] == "gen": ##rsa gen <keysize> <keyname>
|
||||||
keyFileName = sys.argv[3]
|
keyFileName = sys.argv[3]
|
||||||
key = generateKeys(keyFileName, int(sys.argv[2]))
|
key = generateKeys(keyFileName, int(sys.argv[2]))
|
||||||
|
print("e: ", key[E])
|
||||||
|
print("n: ", key[N])
|
||||||
|
print("d: ", key[D])
|
||||||
printKey(key)
|
printKey(key)
|
||||||
try:
|
try:
|
||||||
saveKeyFile(key, keyFileName)
|
saveKeyFile(key, keyFileName)
|
||||||
|
Loading…
Reference in New Issue
Block a user