Forensicschecksumhashmd5sha256sha512file integritygtk

gtkhash

GtkHash is a GTK+ utility for computing message digests and checksums. It supports hash functions including MD5, SHA1, SHA256, SHA512, and others.

Description

GtkHash provides a graphical interface for users to compute checksums and message digests of files or text using various hash algorithms. It is particularly useful for verifying file integrity by comparing computed hashes against known values. The tool integrates with file managers like Caja, Nemo, and Thunar through dedicated extensions, allowing context-menu based hashing directly within these environments.

Supported hash functions include MD5, MD6, SHA1, SHA256, SHA512, RIPEMD, TIGER, and WHIRLPOOL, leveraging libraries such as mhash, libgcrypt, libnettle, and libb2. This makes GtkHash suitable for data validation tasks in security workflows, such as confirming downloads or checking file authenticity during forensic analysis.

The core gtkhash package serves as the backend for both the standalone utility and the file manager extensions. Users can install the main package for command-line and GUI usage, or specific extensions for seamless integration with their preferred file manager.

How It Works

GtkHash computes cryptographic hash functions on files, URIs, or text input using libraries like libgcrypt20, libnettle8t64, libb2-1, and zlib1g. It supports verifying digests by comparing computed values against provided checksums or files containing them. The application operates via a GTK+ interface or command-line options, enabling specific hash algorithms and handling multiple inputs.

Installation

bash
sudo apt install gtkhash

Flags

-h, --helpShow help options
--help-allShow all help options
--help-gtkShow GTK+ Options
-c, --check=DIGESTCheck against the specified digest or checksum
-C, --check-file=FILE|URICheck digests or checksums from the specified file
-f, --function=FUNCTIONEnable the specified Hash Function (e.g. MD5)
-t, --text=TEXTHash the specified text
-v, --versionShow version information
--display=DISPLAYX display to use

Examples

Show help options for gtkhash
gtkhash -h
Display all available help options
gtkhash --help-all
Show GTK+ specific options
gtkhash --help-gtk
Display version information
gtkhash -v
Check file against specified digest
gtkhash -c <DIGEST> <FILE>
Check file using digests from specified checksum file
gtkhash -C <CHECKSUM_FILE> <FILE>
Compute MD5 hash of specified file
gtkhash -f MD5 <FILE>
Hash the specified text string
gtkhash -t "sample text"
Updated 2026-04-16kali.org ↗