Merge branch 'master' of https://apollo-server.ddns.net/gitea/Hesham/hesham-rsa
This commit is contained in:
commit
01e3f69c94
2
rsa.py
2
rsa.py
@ -137,6 +137,8 @@ def readKeyFile(keyName):
|
|||||||
|
|
||||||
|
|
||||||
def saveKeyFile(key, fileName):
|
def saveKeyFile(key, fileName):
|
||||||
|
if not os.path.isdir(keysFolder):
|
||||||
|
os.makedirs(keysFolder)
|
||||||
with open(keysFolder+fileName, "w") as keyFile:
|
with open(keysFolder+fileName, "w") as keyFile:
|
||||||
keyFile.write("{0}\n{1}\n{2}\n".format(hex(key[0]), hex(key[1]), hex(key[2])))
|
keyFile.write("{0}\n{1}\n{2}\n".format(hex(key[0]), hex(key[1]), hex(key[2])))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user