From 40f7dcb4088cad9bd0f1f6876f2d8ace62da3480 Mon Sep 17 00:00:00 2001 From: fazledyn-or Date: Thu, 31 Aug 2023 13:35:24 +0600 Subject: [PATCH] Fix: Replaced md5 algorithm with sha3_256 --- cinder/volume/drivers/stx/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/volume/drivers/stx/client.py b/cinder/volume/drivers/stx/client.py index de615357b..128ecd2bc 100644 --- a/cinder/volume/drivers/stx/client.py +++ b/cinder/volume/drivers/stx/client.py @@ -121,7 +121,7 @@ class STXClient(object): hash_ = "%s_%s" % (self._login, self._password) if six.PY3: hash_ = hash_.encode('utf-8') - hash_ = hashlib.md5(hash_) # nosec + hash_ = hashlib.sha3_256(hash_) # nosec digest = hash_.hexdigest() url = self._base_url + "/login/" + digest -- 2.25.1