Skip to content

Commit

Permalink
fix(serializer): MD5 hashing is not allowed for FIPS
Browse files Browse the repository at this point in the history
  • Loading branch information
MattTheCuber authored and jourdain committed Feb 14, 2024
1 parent 5439157 commit 6e163d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trame_vtk/modules/vtk/serializers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def base64_encode(x):


def hash_data_array(data_array):
hashed_bit = hashlib.md5(memoryview(data_array)).hexdigest()
hashed_bit = hashlib.md5(memoryview(data_array), usedforsecurity=False).hexdigest()
type_code = array_types_mapping[data_array.GetDataType()]
return "%s_%d%s" % (hashed_bit, data_array.GetSize(), type_code)

Expand Down

0 comments on commit 6e163d6

Please sign in to comment.