1
0

fix: crypto problem

This commit is contained in:
オスカー、 2023-03-22 14:43:33 +00:00 committed by GitHub
parent 1f99463414
commit b5db0268e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
app.py
View File

@ -33,8 +33,8 @@ fn = Fernet(key)
def encrypt(text: str) -> str:
return fn.encrypt(text.encode())
def decrypt(text: str) -> str:
return fn.decrypt(text).decode()
def decrypt(token: str) -> str:
return fn.decrypt(bytes(token)).decode()
async def async_list(values: list) -> Any:
for value in values: