#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

#1321 in Algorithms

Download history 3/week @ 2024-09-20 214/week @ 2024-11-08 116/week @ 2024-11-15 16/week @ 2024-11-22 13/week @ 2024-11-29 6/week @ 2024-12-06

154 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