Skip to content

Commit

Permalink
Fix MD5 hash for FIPS encryption compatability (#2258)
Browse files Browse the repository at this point in the history
Closes #2257.
  • Loading branch information
Andrew-S-Rosen committed Jun 15, 2024
1 parent 7ea92b1 commit 4376f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quacc/atoms/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_atoms_id(atoms: Atoms) -> str:
.replace("float32", "float")
)

return hashlib.md5(encoded_atoms.encode("utf-8")).hexdigest()
return hashlib.md5(encoded_atoms.encode("utf-8"), usedforsecurity=False).hexdigest()


def check_is_metal(atoms: Atoms) -> bool:
Expand Down

0 comments on commit 4376f7e

Please sign in to comment.