--- protocol.py 2009-07-12 17:34:44.000000000 +1200 +++ protocol.py.fix 2009-07-13 19:13:27.000000000 +1200 @@ -8,7 +8,7 @@ # ############################################################################# -import socket, struct, os, time, sys, md5, hmac, types, random +import socket, struct, os, time, sys, hashlib, hmac, types, random import imp, marshal, new, __builtin__ import Pyro import util, constants @@ -832,11 +832,15 @@ except: pid=id(self) # XXX jython has no getpid() string = '%s-%d-%.20f-%.20f' %(str(getIPAddress()), pid, time.time(), random.random()) - return md5.new(string).digest() + m = hashlib.md5() + m.update(string) + return m.digest() def mungeIdent(self, ident): # munge the identification string into something else that's # not easily guessed or recognised, like the md5 hash: - return md5.new(ident).digest() + m = hashlib.md5() + m.update(ident) + return m.digest() def setAllowedIdentifications(self, ids): if ids is not None: if type(ids) in (types.TupleType, types.ListType):