Subject: Re: SHA Hash in python? - DN [1]
Michael Hudson <mwh21@cam.ac.uk> - 17 Mar 2000 - comp.lang.python
Brian Haskin <haskin@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
Last modified
2000-07-20
2000-07-20
(195.108.246.52)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
