import hashlib
hasher = hashlib.md5()
# Dane pobrane z http://csrc.nist.gov/groups/STM/cavp/documents/mac/hmactestvectors.zip

with open('./hmactestvectors.zip', 'rb') as afile:
    buf = afile.read()
    hasher.update(buf)

print(hasher.hexdigest())
