Skip to content

Instantly share code, notes, and snippets.

@Thithip
Created August 9, 2015 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thithip/ea348f697a4bd308bdbb to your computer and use it in GitHub Desktop.
Save Thithip/ea348f697a4bd308bdbb to your computer and use it in GitHub Desktop.
Generate file MD5 in Python
import hashlib
print hashlib.md5(open(file_path, 'rb').read()).hexdigest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment