import hashlib hash = hashlib.md5() # The size of the resulting hash in bytes. print(hash.digest_size) # The internal block size of the hash algorithm in bytes. print(hash.block_size)