We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd932c3 commit bdd7525Copy full SHA for bdd7525
fsspec/utils.py
@@ -281,7 +281,11 @@ def tokenize(*args, **kwargs):
281
"""
282
if kwargs:
283
args += (kwargs,)
284
- return md5(str(args).encode()).hexdigest()
+ try:
285
+ return md5(str(args).encode()).hexdigest()
286
+ except ValueError:
287
+ # FIPS systems: https://github.com/fsspec/filesystem_spec/issues/380
288
+ return md5(str(args).encode(), usedforsecurity=False).hexdigest()
289
290
291
def stringify_path(filepath):
0 commit comments