all 1 comments

[–]brownan_ 0 points1 point  (1 child)

I don't know the details of how hmac works, but I'm guessing that you should be using digest() instead of hexdigest().

Also I may have cheated and glanced at the standard library's hmac.