Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion suds/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def mangle(self, name, x):
Mangle the name by hashing the I{name} and appending I{x}.
@return: the mangled name.
"""
h = hashlib.sha256(name.encode('utf8')).hexdigest()
h = hashlib.sha1(name.encode('utf8')).hexdigest()
return '%s-%s' % (h, x)


Expand Down
4 changes: 2 additions & 2 deletions suds/wsse.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from hashlib import sha256
except ImportError:
# Python 2.4 compatibility
from md5 import md5 as sha56
from md5 import md5 as sha256



Expand Down Expand Up @@ -140,7 +140,7 @@ def setnonce(self, text=None):
s.append(self.username)
s.append(self.password)
s.append(Token.sysdate())
m = sha56()
m = sha256()
m.update(':'.join(s).encode("utf-8"))
self.nonce = m.hexdigest()
else:
Expand Down