BLAKE3-team / BLAKE3

the official Rust and C implementations of the BLAKE3 cryptographic hash function
Apache License 2.0
4.71k stars 315 forks source link

(Feature request) Create hashes for remote files with b3sum #366

Closed hardBSDk closed 6 months ago

hardBSDk commented 6 months ago

The command b3sum https://github.com/BLAKE3-team/BLAKE3/archive/refs/tags/1.5.0.tar.gz would download the tarball to the temporary folder and create a hash for it.

It's useful when the user don't want to download the file.

oconnor663 commented 6 months ago

With no arguments, b3sum will hash standard input, so you can do something like this:

curl -L https://github.com/BLAKE3-team/BLAKE3/archive/refs/tags/1.5.0.tar.gz | b3sum
BurningEnlightenment commented 6 months ago

To clarify: This feature is not intended to be implemented directly in b3sum.