Bill Trost wrote:

> The following seems to work (yes, another Python hacker in the midst):
> 
> from struct import *
> import sha
> def HexSha(s):
>         return "%X%X%X%X%X" % unpack("!lllll", sha.new(s).digest())

I donno - I just used sha.sha("key").hexdigest() and I managed to request
stuff just fine, but what the hell.  So now I'm using this implementation.

-- 
Itamar S.T.  itamars at ibm.net

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to