[PYTHON-CRYPTO] Hashing modules

Dan Parisien dan at eevolved.com
Sun Feb 11 17:56:13 CET 2001


On Domingo 11 Fevereiro 2001 11:08, you wrote:

> M2Crypto.EVP.HMAC presents the same interface, only difference being
>
> that its __init__() accepts an additional parameter 'key':
and it should be

i would rather
from sha import sha
s = sha("some random text").digest()

than
from sha import sha
s = sha.new("some random text").digest()

it just seems cleaner...

peace,
Dan





More information about the python-crypto mailing list