From 8a2a06c3222eff9f2bf10c5fd8ee8069a156c6a5 Mon Sep 17 00:00:00 2001 From: Gabor Istvan Varga Date: Fri, 8 Sep 2023 10:29:50 +0000 Subject: [PATCH] Added FIPS compliant flag to md5 call --- sphinx_design/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_design/extension.py b/sphinx_design/extension.py index 962b1fb..7460603 100644 --- a/sphinx_design/extension.py +++ b/sphinx_design/extension.py @@ -67,7 +67,7 @@ def update_css_js(app: Sphinx): js_path.write_text(content) # Read the css content and hash it content = read_text(static_module, "style.min.css") - hash = hashlib.md5(content.encode("utf8")).hexdigest() + hash = hashlib.md5(content.encode("utf8"), usedforsecurity=False).hexdigest() # Write the css file css_path = static_path / f"design-style.{hash}.min.css" app.add_css_file(css_path.name)