paq files to hash.

Overview

paq

paq files to hash.

Hash a single file or all files in directory recursively.

Installation

Requires cargo.

Run cargo install paq.

Usage

Run paq [src] to hash src (file or directory).

For help, run paq --help.

Library

Add paq: "0.4.0" to Cargo.toml.

Usage

use paq;

let source = "/path/to/source";
let hash: String = paq::hash_source(source);

println!("{}", hash);

Caution

Needs tests!

License

MIT

You might also like...
MD5/SHA256 HASH ATTACK IN RUST
MD5/SHA256 HASH ATTACK IN RUST

hashraccoon Installation Install cargo curl https://sh.rustup.rs -sSf | sh Install the hashraccoon crate cargo install hashraccoon Download the rockyo

Blazing fast Pedersen hash implementation for Node.JS

pedersen-fast Blazing fast Pedersen hash implementation for Node.JS Exposes starknet-crypto's implementation written in Rust as WASM package. Usage np

Hash trait that is object-safe

Hash trait that is object-safe This crate provides a DynHash trait that can be used in trait objects. Types that implement the standard library's std:

ssh-box: use ssh keys to encrypt files

ssh-box: use ssh keys to encrypt files work in progress ssh-box file format A file encrypted by ssh-box is an ASCII-armored binary file. The binary co

Audit Cargo.lock files for dependencies with security vulnerabilities

RustSec Crates ๐Ÿฆ€ ๐Ÿ›ก๏ธ ๐Ÿ“ฆ The RustSec Advisory Database is a repository of security advisories filed against Rust crates published via crates.io. The a

Easily and securely share files from the command line. A fully featured Firefox Send client.

Notice: the default Send host is provided by @timvisee (info). Please consider to donate and help keep it running. ffsend Easily and securely share fi

Flashcards: A spaced repetition app designed around org files.

Flashcards Since it's easy to create notes in org-mode and difficult to create flashcards, this app tries to ease the process of making cards! For you

Encrypt your files in cow language ๐Ÿ„
Encrypt your files in cow language ๐Ÿ„

Cow-encryptor Encrypt your files in cow language ๐Ÿฎ Installation ๐Ÿ“ฆ Arch Linux ๐Ÿง cow-encryptor is in the AUR yay -S cow-encryptor Other ๐ŸชŸ ๐Ÿง With ma

Smarter brute-force password searching for PKZIP encrypted files

Zip Blitz Motivation This program was created for a very specfic problem I had. I had a large encrypted zip file that I lost/forgot the password for.

Comments
  • Finalize paq hashing algorithm

    Finalize paq hashing algorithm

    Several hashing algorithms were experimented with when prototyping paq.

    Ultimately, a consistent and extensible algorithm needs to be chosen and documented in the package README.

    Considerations:

    • file/directory path hashes
    • file/directory metadata hashes
    • leaf hash value sorting if tree
    • merkle tree hash (bit of future proofing)
    • performance/scaling

    GIT has been a source of reference for determining how/what to hash.

    enhancement 
    opened by gregl83 2
  • Write integration tests asserting final hashing algorithm

    Write integration tests asserting final hashing algorithm

    Prototype of paq was built rapidly as an experiment without tests.

    This package shouldn't be considered for real-world use until tests have been added verifying the documented algorithm is functioning as expected.

    The tests should function as acceptance criteria / business requirements and use the test host file system (IO).

    enhancement 
    opened by gregl83 1
  • refactor hashing algorithm for performance

    refactor hashing algorithm for performance

    • updated hashing algorithm to blake3
    • added rayon for parallel hashing
    • reduced number of hashes per directory tree
    • removed merkle tree calculation
    • refactored file reads to use buffered stream
    opened by gregl83 0
Releases(v0.4.0)
Owner
gregory langlais
gregory langlais
Highly modular & configurable hash & crypto library

Octavo Highly modular & configurable hash & crypto library written in pure Rust. Installation [dependencies] octavo = { git = "https://github.com/libO

Octavo Developers 139 Dec 29, 2022
Collection of cryptographic hash functions written in pure Rust

RustCrypto: hashes Collection of cryptographic hash functions written in pure Rust. All algorithms reside in the separate crates and implemented using

Rust Crypto 1.2k Jan 8, 2023
A rust binding for nodejs to generate md5 hash value

Hasher A rust binding for creating node module to generate md5 hash value This project was bootstrapped by create-neon. Installing hasher Installing h

Md. Al-Amin 0 Nov 7, 2021
Reference implementation for the Poseidon Snark-friendly Hash algorithm.

Dusk-Poseidon Reference implementation for the Poseidon Hashing algorithm. Reference Starkad and Poseidon: New Hash Functions for Zero Knowledge Proof

Dusk Network 96 Jan 2, 2023
the official Rust and C implementations of the BLAKE3 cryptographic hash function

BLAKE3 is a cryptographic hash function that is: Much faster than MD5, SHA-1, SHA-2, SHA-3, and BLAKE2. Secure, unlike MD5 and SHA-1. And secure again

BLAKE3 team 3.7k Jan 6, 2023
Fastmurmur3 - Fast non-cryptographic hash, with the benchmarks to prove it.

Fastmurmur3 Murmur3 is a fast, non-cryptographic hash function. fastmurmur3 is, in my testing, the fastest implementation of Murmur3. Usage let bytes:

Kurt Wolf 13 Dec 2, 2022
An implementation of Jakobsson's Fractal Hash Sequence Traversal algorithm

fractal-hash-traversal An implementation of Jakobsson's Fractal Hash Sequence Traversal algorithm. There is at least one hash traversal algorithm that

Dan Cline 1 Jan 12, 2022
computed data's hash by webAssembly

wasm-hasher computed data's hash by webAssembly support md5,sha1,sha2-224,sha2-356,sha2-384,sha2-512,sha3-224,sha3-256,sha3-384,sha3-512,china-sm3 typ

fuyoo 2 Oct 13, 2022
Generates a unique hash/identifier for a system given a set of parameters.

uniqueid ?? Generates a unique hash/identifier for a system given a set of parameters. Example usage use uniqueid; pub fn main() { let data = vec

Checksum 2 Aug 19, 2022
Left To My Own Devices - NT hash tools

ntcrack Left To My Own Devices - NT cracker A full writeup of how it works is available at the SensePost blog Invocation ./ntcrack <input hashlist> <w

SensePost 24 Nov 24, 2022