HMAC with RIPEMD-160

Kless jonas.esp at googlemail.com
Sun Dec 21 13:21:30 CET 2008


Is there any way of use HMAC with RIPEMD-160?

Since that to create a ripemd-160 hash there is to use:
    h = hashlib.new('ripemd160')
it looks that isn't possible

For HMAC-SHA256 would be:
---------
import hashlib
import hmac

hm = hmac.new('key', msg='message', digestmod=hashlib.sha256)
---------


http://docs.python.org/library/hashlib.html
http://docs.python.org/library/hmac.html



More information about the Python-list mailing list