Skip to content

Commit

Permalink
Revert "Set "usedforsecurity' to False for md5 checksum. (#1143)" (#1144
Browse files Browse the repository at this point in the history
)

This reverts commit 9adef43.
  • Loading branch information
serhii73 authored Feb 23, 2023
1 parent 9adef43 commit 0d04c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dateparser/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0d04c4f

Please sign in to comment.