This commit is contained in:
iFargle
2023-02-28 13:53:54 +09:00
parent fa5951a1b8
commit 0f19484a06
2 changed files with 1 additions and 18 deletions

View File

@@ -18,7 +18,7 @@ def set_api_key(api_key):
# User-set encryption key
encryption_key = os.environ['KEY']
# Key file on the filesystem for persistent storage
key_file = open("/data/key.txt", "wb+")
key_file = open("/data/key.txt", "wb+")
# Preparing the Fernet class with the key
fernet = Fernet(encryption_key)
# Encrypting the key