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()
 

A Django site. rendered by a django application. hosted by webfaction.