Skip to content

Commit 8a2a06c

Browse files
author
Gabor Istvan Varga
committed
Added FIPS compliant flag to md5 call
1 parent a9e41c4 commit 8a2a06c

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
@@ -67,7 +67,7 @@ def update_css_js(app: Sphinx):
6767
js_path.write_text(content)
6868
# Read the css content and hash it
6969
content = read_text(static_module, "style.min.css")
70-
hash = hashlib.md5(content.encode("utf8")).hexdigest()
70+
hash = hashlib.md5(content.encode("utf8"), usedforsecurity=False).hexdigest()
7171
# Write the css file
7272
css_path = static_path / f"design-style.{hash}.min.css"
7373
app.add_css_file(css_path.name)

0 commit comments

Comments
 (0)