Skip to content

Tag: hmac

Port hmac.new().digest() module from Python 2.7 to 3.7

I have been struggling with this for hours. I have the following production code (parsed out for simplicity) that runs just fine in Python 2.7: The output is a string like so: But when I run this with Python3.7, I get the following error: After a quite a bit of research I understood that hmac has changed in 3…