4 releases (2 breaking)

Uses new Rust 2021

0.5.1 Dec 30, 2021
0.5.0 Dec 30, 2021
0.4.0 Dec 18, 2021
0.3.2 Dec 18, 2021
0.1.0 Dec 17, 2021

#343 in Cryptography

38 downloads per month
Used in nftver

MIT license

6KB
76 lines

paq

paq files to hash.

Hash file or directory (recursively).

Directories output the top hash, or root, of a merkle tree.

Powered by SHA256 hashing algorithm.

Install Command

Requires cargo.

Run cargo install paq.

Usage

Run paq [src] to hash source file or directory.

For help, run paq --help.

Use Crate

Add paq to project dependencies in Cargo.toml.

Usage

use paq;

let source = "/path/to/source";
let ignore_hidden = true;
let source_hash: String = paq::hash_source(source, ignore_hidden);

println!("{}", source_hash);

Caution

Needs tests!

License

MIT

Dependencies

~2MB
~34K SLoC