Expand description
Contains a hashing method that matches the hashing method described here: https://pypi.org/project/oshash/ This hashing method is particularly useful when you don’t want to read an entire file’s bytes to generate a hash, provided you trust that any changes to the file will cause byte differences in the first and last bytes of the file, or a change to its file size.
Enums§
Functions§
- oshash
- Hashes the file at the provided path identically to the method described here: https://pypi.org/project/oshash/
- oshash_
buf - Hashes a
Read + Seek
input if you already have a file handle. If the file has an existing seek offset, then it will be reset back to that position when the function exits