Skip to content

Commit af64472

Browse files
gabor-vargaGabor Istvan Vargachrisjsewell
authored
🔧 Add FIPS compliant flag to md5 call (#162)
Co-authored-by: Gabor Istvan Varga <[email protected]> Co-authored-by: Chris Sewell <[email protected]>
1 parent 074f21f commit af64472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_design/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def update_css_js(app: Sphinx):
7070
content = read_text(static_module, "style.min.css")
7171
# Write the css file
7272
if sphinx_version < (7, 1):
73-
hash = hashlib.md5(content.encode("utf8")).hexdigest()
73+
hash = hashlib.md5(content.encode("utf8"), usedforsecurity=False).hexdigest()
7474
css_path = static_path / f"sphinx-design.{hash}.min.css"
7575
else:
7676
# since sphinx 7.1 a checksum is added to the css file URL, so there is no need to do it here

0 commit comments

Comments
 (0)