A high-performance command-line utility built in Rust to quickly calculate the SHA-256 cryptographic hash of large files. This project demonstrates Rust's efficiency, memory safety, and robust error handling for I/O operations.
- Speed & Efficiency: Reads files in small, controlled chunks (4KB buffer) to minimize RAM usage, regardless of file size.
- CLI Interface: Uses the
clapcrate for professional command-line argument parsing. - Integrity Check: Utilizes the
sha2crate for cryptographic hashing.
- Rust and Cargo installed (
rustup).
-
Clone the repository:
git clone [https://github.com/ewhx-dev/Fast-File-Hasher.git] cd fast-hasher -
Build the project (use release mode for optimal speed):
cargo build --release
-
Run the executable: The compiled binary will be located in the
target/release/directory.Syntax:
./target/release/fast-hasher --file <path_to_your_file>
Example:
./target/release/fast-hasher --file ./data/my_huge_archive.zip