| Crates.io | oshash |
| lib.rs | oshash |
| version | 0.2.2 |
| created_at | 2022-12-03 15:19:20.591409+00 |
| updated_at | 2025-07-13 13:26:14.641113+00 |
| description | An implementation of https://pypi.org/project/oshash/ in Rust |
| homepage | https://github.com/stevenwcarter/oshash-rs |
| repository | https://github.com/stevenwcarter/oshash-rs |
| max_upload_size | |
| id | 729150 |
| size | 402,234 |
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.
A command line utility is provided to generate hashes for files specified as arguments.
$ oshash test-resources/testdata
40d354daf3acce9c test-resources/testdata