Update passwordalchemy.py

main
witchdocsec 2024-05-29 03:03:13 +01:00 committed by GitHub
parent 62d5e72bc9
commit 224918ccf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class mainfuncs:
#store a credential #store a credential
@staticmethod @staticmethod
def store(args): def store(args):
with open("pub.pem") as pemfile: with open("pub.pem","r") as pemfile:
#load rsa public key #load rsa public key
pubkey=rsa.PublicKey._load_pkcs1_pem(pemfile.read()) pubkey=rsa.PublicKey._load_pkcs1_pem(pemfile.read())
#encrypted credential #encrypted credential
@ -65,7 +65,7 @@ class mainfuncs:
#update a credential #update a credential
@staticmethod @staticmethod
def update(args): def update(args):
with open("pub.pem") as pemfile: with open("pub.pem","r") as pemfile:
#load rsa public key #load rsa public key
pubkey=rsa.PublicKey._load_pkcs1_pem(pemfile.read()) pubkey=rsa.PublicKey._load_pkcs1_pem(pemfile.read())
#encrypted credential #encrypted credential