Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.24 KB

File metadata and controls

42 lines (29 loc) · 1.24 KB

🦀 Fast File Hasher (SHA-256)

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.

✨ Key Features

  • Speed & Efficiency: Reads files in small, controlled chunks (4KB buffer) to minimize RAM usage, regardless of file size.
  • CLI Interface: Uses the clap crate for professional command-line argument parsing.
  • Integrity Check: Utilizes the sha2 crate for cryptographic hashing.

🚀 Getting Started

Prerequisites

  • Rust and Cargo installed (rustup).

🛠 Installation & Usage

  1. Clone the repository:

    git clone [https://github.com/ewhx-dev/Fast-File-Hasher.git]
    cd fast-hasher
  2. Build the project (use release mode for optimal speed):

    cargo build --release
  3. 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

Example Output