Skip to content

Commit

Permalink
optimize encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
yukonet committed May 7, 2024
1 parent c09d1c2 commit 71c55fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ def _check_status(cls):
password = get_account_password()
if not password:
raise Exception(f"Cannot get password from shkeeper, quit")
else:
elif password and (cls.key is None):
cls.key = cls._get_key_from_password(password)
else:
pass

@classmethod
def encrypt(cls, cleartext):
Expand Down

0 comments on commit 71c55fb

Please sign in to comment.