diff --git a/suds/reader.py b/suds/reader.py index 31c5ee74..7136a449 100644 --- a/suds/reader.py +++ b/suds/reader.py @@ -58,7 +58,7 @@ def mangle(self, name, x): @rtype: str """ - h = md5(name.encode()).hexdigest() + h = md5(name.encode(), usedforsecurity=False).hexdigest() return '%s-%s' % (h, x) diff --git a/suds/wsse.py b/suds/wsse.py index 96d9eb64..2787f33b 100644 --- a/suds/wsse.py +++ b/suds/wsse.py @@ -158,7 +158,7 @@ def setnonce(self, text=None): s.append(self.username) s.append(self.password) s.append(Token.sysdate()) - m = md5() + m = md5(usedforsecurity=False) m.update(':'.join(s).encode('utf-8')) self.nonce = m.hexdigest() else: