#hashing #byte #file #hash #read-file #pypi #filesize

oshash

An implementation of https://pypi.org/project/oshash/ in Rust

5 releases

0.2.0 Nov 17, 2024
0.1.3 Nov 8, 2024
0.1.2 Nov 8, 2024
0.1.1 Dec 3, 2022
0.1.0 Dec 3, 2022

#770 in Algorithms

Download history 158/week @ 2024-11-03 59/week @ 2024-11-10 124/week @ 2024-11-17 5/week @ 2024-11-24 14/week @ 2024-12-01 5/week @ 2024-12-08

232 downloads per month

GPL-3.0-or-later

400KB
111 lines

oshash

Crates.io Version docs.rs codecov

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.


lib.rs:

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.

No runtime deps