Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 7573ff8

Browse files
authored
md5 not security
1 parent ccc51a9 commit 7573ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/inline_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async def inline_echo(inline_query: InlineQuery) -> InlineQueryResultArticle:
1717
text = inline_query.query
1818
res = await bank_api.build_list_coin()
1919
crypto = await crypto_price.coin_list()
20-
result_id: str = hashlib.md5(text.encode()).hexdigest()
20+
result_id: str = hashlib.sha256(text.encode()).hexdigest()
2121
result_list: List[InlineQueryResultArticle] = []
2222
if text in res.keys():
2323
input_content = InputTextMessageContent(lazy_get_text(

0 commit comments

Comments
 (0)