0
0
Fork 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: def encrypt(text: str) -> str:
return fn.encrypt(text.encode()) return fn.encrypt(text.encode())
def decrypt(text: str) -> str: def decrypt(token: str) -> str:
return fn.decrypt(text).decode() return fn.decrypt(bytes(token)).decode()
async def async_list(values: list) -> Any: async def async_list(values: list) -> Any:
for value in values: for value in values: