[PYTHON-CRYPTO] Hashing modules

Andrew Kuchling akuchlin at CNRI.RESTON.VA.US
Mon Feb 12 02:57:39 CET 2001


On Sun, Feb 11, 2001 at 11:56:13AM -0500, Dan Parisien wrote:
>from sha import sha
>s = sha.new("some random text").digest()

Typo here: the first line would be just "import sha"; new() is a function in
the module 'sha', not a class method.

--amk





More information about the python-crypto mailing list