JayBrown / Checksums

macOS workflow and shell script to calculate or automatically verify checksums for files or folder contents
MIT License
42 stars 9 forks source link

Add XXH? #1

Open gingerbeardman opened 6 years ago

gingerbeardman commented 6 years ago

http://cyan4973.github.io/xxHash/

JayBrown commented 6 years ago

I've just installed xxhsum, and implementing both 32- and 64-bit will surely not be a problem. When I start working on the new version (see the other thread), it'll be a Platypus application with its own /bin directory containing CLIs for xxHash, IPFS multihash, bencode torrent hash, dbhash (sqlite), rhash for SHA-3 etc.

Question about xxHash regarding checksum file support: do you know a link to demo files bundled with an XXH checksum file, i.e. something like files.xxh? (No rush, though.)

gingerbeardman commented 6 years ago

I've not encountered any such XXH checksum files

JayBrown commented 6 years ago

No problem. According to the man page, the default way to create them is

xxhsum -H0 foo bar baz > xyz.xxh32
xxhsum -H1 foo bar baz > qux.xxh64

So it should be sufficient to manually create them and tell the script how to find & parse them.