Skip to content
#

hash-functions

Here are 200 public repositories matching this topic...

cmuratori
cmuratori commented May 18, 2019

This one is all you @NoHatCoder :) Not sure what you have planned for that, but it seems like we should check in a copy of your blog post at some point when it is ready, just so people can understand what is going on here with hash levels. Maybe we make a "doc" directory? I can then link to it with the main readme.md (assuming GitHub actually has a way to do that... I will check).

- Casey

sean-abbott
sean-abbott commented Jun 21, 2019

The xxHash implementation doesn't produce predictable results when compared to python for strings (as in the given example.

I believe this is due to java's handling of character arrays: https://codeahoy.com/2016/05/08/the-char-type-in-java-is-broken/

We get predictable results when we dump to a byte array instead:
LongHashFunction.xx().hashBytes("test".getBytes()) gets the same output as

hjohn
hjohn commented Sep 18, 2017

I discovered that verifying hashes with -c is much slower than generating them.

I was using this command:

rhash -c --skip-ok download.sfv

iotop reported disk read speeds of 30 MB/sec and rhash was consuming 100% CPU.

Then I thought, how does rhash know that the SFV file contains MD5 hashes? It probably doesn't, and it runs all checksum algorithms when doing a check and see

Improve this page

Add a description, image, and links to the hash-functions topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the hash-functions topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.