Compare commits

..

1 Commits

Author SHA1 Message Date
2ae7d09c25
rsa: print help if not args given
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2024-01-19 16:15:18 +03:00

5
rsa.py Normal file → Executable file
View File

@ -31,6 +31,11 @@ ID = 6
def main():
print("hesham-rsa version ", VERSION)
if len(sys.argv) == 1:
printHelp()
sys.exit(127)
if sys.argv[1] == "gen" and len(sys.argv) == 4: ##rsa gen <keysize> <keyname>
keyFileName = sys.argv[3]
if keyExist(keyFileName):