The hmac Module

(New in 2.2) Calculate HMAC signatures (Keyed-Hashing for Message Authentication, RFC 2104)

import hmac
h = hmac.new(key, text)
h.update(moretext)
print h.hexdigest()
 

[comment on/vote for this article]

A Django site. this page was rendered by a django application in 0.00s 2012-05-25 15:43:48.950423. hosted by webfaction.