From 0d04c4f3226db16b6214fe1a4e89ebb7945e4dfb Mon Sep 17 00:00:00 2001 From: Serhii A Date: Thu, 23 Feb 2023 13:22:47 +0200 Subject: [PATCH] Revert "Set "usedforsecurity' to False for md5 checksum. (#1143)" (#1144) This reverts commit 9adef43f16b012133985e603b21e68b3b7131e9a. --- dateparser/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dateparser/conf.py b/dateparser/conf.py index 53b8a192d..3a7c41f89 100644 --- a/dateparser/conf.py +++ b/dateparser/conf.py @@ -46,7 +46,7 @@ def get_key(cls, settings=None): return 'default' keys = sorted(['%s-%s' % (key, str(settings[key])) for key in settings]) - return hashlib.md5(''.join(keys).encode('utf-8'), usedforsecurity=False).hexdigest() + return hashlib.md5(''.join(keys).encode('utf-8')).hexdigest() @classmethod def _get_settings_from_pyfile(cls):