version 1.2.1

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2020-08-28 17:52:18 +03:00
parent 7ae3e4dc04
commit c059a7dccd
Signed by: Hesham
GPG Key ID: 74876157D199B09E

3
rsa.py
View File

@ -15,6 +15,7 @@ import os
import sys import sys
import MillerRabin as mr import MillerRabin as mr
VERSION="1.2.1"
keysFolder = "keys/" keysFolder = "keys/"
byteOrder = "little" byteOrder = "little"
N=0 N=0
@ -26,7 +27,7 @@ PHI=5
ID=6 ID=6
def main(): def main():
print("hesham-rsa version ", VERSION)
if len(sys.argv) > 1: if len(sys.argv) > 1:
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]