From 3475c6497b1069128382f7e50b1596f5bd09fc43 Mon Sep 17 00:00:00 2001 From: VIXIVIXIV Date: Thu, 9 May 2024 22:31:57 -0400 Subject: [PATCH] Update cryptography.py Change password file open type to "w" from "wb". No idea if this causes security concerns, but at least you can use the program now. --- CanvasSync/settings/cryptography.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CanvasSync/settings/cryptography.py b/CanvasSync/settings/cryptography.py index 62ac222..d72bf6c 100755 --- a/CanvasSync/settings/cryptography.py +++ b/CanvasSync/settings/cryptography.py @@ -44,7 +44,7 @@ def encrypt(message): print(u"\nPlease enter a password to encrypt the settings file:") hashed_password = bcrypt.hashpw(getpass.getpass().encode(), bcrypt.gensalt()) - with open(os.path.expanduser(u"~") + u"/.CanvasSync.pw", "wb") as pass_file: + with open(os.path.expanduser(u"~") + u"/.CanvasSync.pw", "w") as pass_file: pass_file.write(hashed_password) # Generate random 16 bytes IV