--- a/iro/xmlrpc/SecureUserdbXMLRPCServer.py Thu Nov 04 22:47:00 2010 +0100
+++ b/iro/xmlrpc/SecureUserdbXMLRPCServer.py Thu Nov 18 01:25:28 2010 +0100
@@ -1,6 +1,6 @@
from SecureAuthentificateXMLRPCServer import SecureAuthentificateXMLRPCRequestHandler
from SecureXMLRPCServer import SecureXMLRPCServer
-import os, md5
+import os, hashlib
class UserDB:
'''
@@ -20,7 +20,7 @@
returns a hash out of username and the password and self.salt
user is a directory with two keys: username and password
"""
- m=md5.new()
+ m=hashlib.sha512()
m.update(user["name"])
m.update(self.salt)
m.update(user["password"])