Skip to content

Commit

Permalink
Added FIPS compliant flag to md5 call
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Istvan Varga committed Sep 8, 2023
1 parent a9e41c4 commit 8a2a06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_design/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a2a06c

Please sign in to comment.