Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

are the hashes generated reproducible ? #81

Open
coderedart opened this issue Nov 2, 2021 · 2 comments
Open

are the hashes generated reproducible ? #81

coderedart opened this issue Nov 2, 2021 · 2 comments
Labels

Comments

@coderedart
Copy link

coderedart commented Nov 2, 2021

I was just wondering if i could use this for file/data checksums. kinda like md5, but faster. I tried to different md5 crates and got the same hash. but otoh, i tried twox-hash and xxhash-rust crates, but i get different hashes with both. I know it will probably be good as long as i use only this crate, but i just wanted to check if this is the correct behavior or a bug.

like what happens if someone wants to interact with the hashes/files that i made in rust from other languages like js/c++, will the hashes match ?

EDIT: I"m talking about xxh3 btw.

@coderedart
Copy link
Author

My bad. i read xxh3 was stabilised in the original C repo. this crate's docs clearly state that it is still in development, so i got a little confused. so, once the work is completed in this repo, for any data, this crate will give the same hash as the c/cpp reference implementation, right?

@shepmaster
Copy link
Owner

use this for file/data checksums

yes

once the work is completed in this repo, for any data, this crate will give the same hash as the c/cpp reference implementation

yes. There should be tests added, similar to the existing ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants