This is an automated email from the ASF dual-hosted git repository.
absurdfarce pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-python-driver.git
The following commit(s) were added to refs/heads/trunk by this push:
new f685c2c7 Mark non-security md5 usage to allow for compatibility with
fips environments
f685c2c7 is described below
commit f685c2c73f2e84c1a0f267a34949949058a12404
Author: Luke Ratcliffe <[email protected]>
AuthorDate: Thu Apr 23 08:46:51 2026 +0000
Mark non-security md5 usage to allow for compatibility with fips
environments
patch by Luke Ratcliffe and Brad Schoening; reviewed by Bret McGuire and
Brad Schoening
---
cassandra/metadata.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cassandra/metadata.py b/cassandra/metadata.py
index 0b403bc3..4c1be285 100644
--- a/cassandra/metadata.py
+++ b/cassandra/metadata.py
@@ -1864,7 +1864,7 @@ class MD5Token(HashToken):
def hash_fn(cls, key):
if isinstance(key, str):
key = key.encode('UTF-8')
- return abs(varint_unpack(md5(key).digest()))
+ return abs(varint_unpack(md5(key,usedforsecurity=False).digest()))
class BytesToken(Token):
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]