import hmac
import hashlib

myKey = b'tajny_klucz'
digest_maker = hmac.new(myKey, b'',hashlib.md5)

with open('./test.txt', 'rb') as f:
    while True:
        block = f.read(1024)
        if not block:
            break

digest_maker.update(block)
digest = digest_maker.hexdigest()
print(digest)
