-1

How can I hash an executable file in PYTHON? I've downloaded an exe file and I have its hash. I want to hash by myself and compare 2 hashes for more certainty.

harez
  • 1
  • 3

1 Answers1

0
>>> import hashlib
>>> hashlib.md5(open('filename.exe','rb').read()).hexdigest()
kat
  • 104
  • 1
  • 3