From f693ea6d89f7603370d37d7692cefe2fa298f92b Mon Sep 17 00:00:00 2001 From: Zachary Berry Date: Thu, 4 May 2023 10:01:07 -0500 Subject: [PATCH] Added usedforsecurity=False to hashlib md5 call to prevent errors on FIPS=1 systems --- ffmpeg/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg/_utils.py b/ffmpeg/_utils.py index 9baa2c78..f34039c0 100644 --- a/ffmpeg/_utils.py +++ b/ffmpeg/_utils.py @@ -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):