I am wondering if I can have fresh eyes on this python script. It works great with small and medium sized files, but with large files (4-8 GB or so) these are unexplained crashes after launching for several minutes.
Zipped script here
Or:
import sys import msvcrt import hashlib
* Updated *
A working python script to calculate the SHA-1 hash of large files. Thanks to Ignacio Vasquez-Abrams for what's wrong, and Tom Zich for the code.
Source as zip here
To just drag and drop a file, you need to hash on top of the script. Alternatively, you can use the command line using:
SHA-1HashGen.py Path&File
If SHA-1HashGen.py is the name of the script file, and Path & File is the path and file name for hashing.
Or release the script into the SendTo folder (on Windows, shell: sendto) to get it as the right mouse button.
python large-files hash sha1
Peter
source share