Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added usedforsecurity=False to hashlib md5 call to prevent errors on …
…FIPS=1 systems
  • Loading branch information
Zachary Berry committed May 4, 2023
commit f693ea6d89f7603370d37d7692cefe2fa298f92b
2 changes: 1 addition & 1 deletion ffmpeg/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _recursive_repr(item):

def get_hash(item):
repr_ = _recursive_repr(item).encode('utf-8')
return hashlib.md5(repr_).hexdigest()
return hashlib.md5(repr_, usedforsecurity=False).hexdigest()


def get_hash_int(item):
Expand Down