Skip to content

Commit

Permalink
馃敡 Add FIPS compliant flag to md5 call (#162)
Browse files Browse the repository at this point in the history
Co-authored-by: Gabor Istvan Varga <gabor.varga@esa.int>
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
  • Loading branch information
3 people committed May 21, 2024
1 parent 074f21f commit af64472
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 @@ -70,7 +70,7 @@ def update_css_js(app: Sphinx):
content = read_text(static_module, "style.min.css")
# Write the css file
if sphinx_version < (7, 1):
hash = hashlib.md5(content.encode("utf8")).hexdigest()
hash = hashlib.md5(content.encode("utf8"), usedforsecurity=False).hexdigest()
css_path = static_path / f"sphinx-design.{hash}.min.css"
else:
# since sphinx 7.1 a checksum is added to the css file URL, so there is no need to do it here
Expand Down

0 comments on commit af64472

Please sign in to comment.