#hash #directory #path #blake2 #calculator #calculate

app gorn

Calculates blake2 hash from file or directory

1 unstable release

0.1.1 Nov 27, 2021

#13 in #blake2

22 downloads per month

MIT license

12KB
71 lines

Gorn - Multithreaded File Hash Calculator

Usage

You can calculate hash from single file:

gorn --path src/main.rs

Or you can calculate it for directory:

gorn --path ./target

If you want to inspect hashes for all files in directory you can use --print_tree flag:

gorn --path ./target --print_tree

Install

From crates.io

  1. Get rust build tools from rustup.
  2. Install via:
cargo install gorn

From Source

  1. Get rust build tools from rustup.
  2. Install from sources:
cd gorn; cargo install --path .

Using NIX

  1. Add nix-command and flakes support (optional):
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
  1. Build and install:
nix build; nix shell
  1. Run:
gorn --path src

Dependencies

~3–12MB
~102K SLoC