fix: crypto problem
This commit is contained in:
parent
1f99463414
commit
b5db0268e5
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
@ -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:
|
||||||
|
|
Reference in a new issue