From 224918ccf6e3974b0598785047772a767a7a9832 Mon Sep 17 00:00:00 2001 From: witchdocsec <107813117+witchdocsec@users.noreply.github.com> Date: Wed, 29 May 2024 03:03:13 +0100 Subject: [PATCH] Update passwordalchemy.py --- passwordalchemy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passwordalchemy.py b/passwordalchemy.py index b40df29..2e5b1c6 100644 --- a/passwordalchemy.py +++ b/passwordalchemy.py @@ -54,7 +54,7 @@ class mainfuncs: #store a credential @staticmethod def store(args): - with open("pub.pem") as pemfile: + with open("pub.pem","r") as pemfile: #load rsa public key pubkey=rsa.PublicKey._load_pkcs1_pem(pemfile.read()) #encrypted credential @@ -65,7 +65,7 @@ class mainfuncs: #update a credential @staticmethod def update(args): - with open("pub.pem") as pemfile: + with open("pub.pem","r") as pemfile: #load rsa public key pubkey=rsa.PublicKey._load_pkcs1_pem(pemfile.read()) #encrypted credential