Addendum Fix to support FIPS enabled machines with MD5 hashing (#17043)

Signed-off-by: sydarb <areebsyed237@gmail.com>
This commit is contained in:
Areeb Syed
2025-04-23 19:55:00 -07:00
committed by GitHub
parent 2c8ed8ee48
commit ed2e464653
2 changed files with 4 additions and 2 deletions
@@ -357,7 +357,8 @@ class SharedStorageConnector(KVConnectorBase_V1):
ids.
"""
input_ids_bytes = input_ids.numpy().tobytes()
input_ids_hash = hashlib.md5(input_ids_bytes).hexdigest()
input_ids_hash = hashlib.md5(input_ids_bytes,
usedforsecurity=False).hexdigest()
foldername = os.path.join(self._storage_path, input_ids_hash)
if create_folder:
os.makedirs(foldername, exist_ok=True)