SHA Hash in python?
Michael Hudson
mwh21 at cam.ac.uk
Fri Mar 17 02:42:22 EST 2000
Brian Haskin <haskin at ptway.com> writes:
> Does anyone know of a python module for the SHA cryptographic hash?
Um, yes.
>>> import sha
>>> r=sha.sha()
>>> r.update (open("foo").read())
>>> r.digest()
'k\227m\272Z\200\022\253]\317\310\330m\232k#\206H\317\270'
You might need to rebuild to get it; I can't remeber whether it comes
built by default.
Cheers,
Michael
--
very few people approach me in real life and insist on proving they are
drooling idiots. -- Erik Naggum, comp.lang.lisp
More information about the Python-list
mailing list