Skip to content

Commit

Permalink
add same description for key checking in encrypt function
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen-Choh committed Dec 26, 2024
1 parent f9abc44 commit 053074b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def encrypt(key: str, plaintext: bytes | str, return_bytes: bool = True) -> byte
:return: Ciphertext
"""

# check if encryption key is set in session state
# if ("encryption_key" not in st.session_state
# or st.session_state["encryption_key"] is None
# or len(st.session_state["encryption_key"]) == 0) and not key:
Expand Down

0 comments on commit 053074b

Please sign in to comment.