DEV Community

Cover image for Introducing TruthByte: A Command-Line Tool for File Integrity Verification
Deev
Deev

Posted on

Introducing TruthByte: A Command-Line Tool for File Integrity Verification

TruthByte is a command-line utility designed to verify file integrity using various hash algorithms, including SHA256, SHA512, MD5, and SHA1. Whether you're downloading large files, managing backups, or ensuring the integrity of critical data, TruthByte provides a straightforward solution.

Key Features

  • Multiple Hash Algorithm Support: Verify files using SHA256, SHA512, SHA1, or MD5.
  • Single File Verification: Compare a file's hash against an expected value.
  • Directory Verification: Process entire directories against a hash file, with an option for recursive scanning.
  • Flexible Hash File Format: Supports standard formats from common hash tools.
  • Path Flexibility: Works with both absolute and relative paths.
  • Output Options: Save verification results to text files.
  • User-Friendly Interface: Color-coded output for clear status indication.
  • Convenient Access: Available as both truthbyte and tb (alias).

Installation

From Source

git clone https://github.com/Opu-H/truthbyte.git
cd truthbyte
chmod +x install.sh
sudo ./install.sh
Enter fullscreen mode Exit fullscreen mode

From .deb Package

Download the latest .deb package from the Releases page and install using:

sudo dpkg -i truthbyte_2.0-1.deb
Enter fullscreen mode Exit fullscreen mode

Usage Example

To verify a single file:

truthbyte -a sha256 /path/to/file.iso expected_hash_value
Enter fullscreen mode Exit fullscreen mode

Contributing

TruthByte is open-source and welcomes contributions. If you're interested in improving the tool, feel free to submit issues or pull requests on GitHub.

For more details, visit the GitHub repository.

Top comments (0)