File Hasher for Openclaw

A zero-dependency utility to compute, verify, and compare file hashes using multiple cryptographic algorithms.

johnnywang2001
v1.0.0
Mar 16, 2026
0
762
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install file-hasher

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install file-hasher using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is File Hasher?

File Hasher is a robust utility designed for Openclaw Skills that enables developers to maintain data integrity through advanced cryptographic hashing. It provides a standardized way to compute checksums, verify downloads against expected values, and perform deep comparisons between files or directories without requiring external dependencies.

By leveraging the built-in hashlib library, this skill ensures high performance and security for verifying software packages, checking disk images, or identifying duplicate files in large datasets. It is an essential component for any Openclaw Skills workflow involving secure file handling or automated integrity audits.

File Hasher Use Cases

  • Verifying the integrity of ISO images or software downloads against provided checksums.
  • Identifying duplicate files or confirming exact file matches during data migration.
  • Auditing directories to detect unauthorized file modifications or bit rot.
  • Generating standard SHA256SUMS or MD5SUMS files for distribution.
  • Quick hashing of strings for testing password logic or generating unique identifiers.

How File Hasher Works

  1. The user selects a specific command such as hash, verify, or directory to initiate the process.
  2. The skill reads the target file or directory and streams the data through the selected cryptographic algorithm (defaulting to SHA-256).
  3. For verification tasks, the calculated hash is compared against the user-provided expected string or an existing checksum file.
  4. Results are returned to the user in a human-readable format, BSD style, or as structured JSON for further automation.

File Hasher Setup

Since this utility is part of the Openclaw Skills ecosystem and has zero external dependencies, setup is straightforward:

  1. Ensure you have Python 3.x installed on your system.
  2. Clone or download the script to your project directory.
  3. Verify the installation by listing available algorithms:
python3 scripts/file_hasher.py algorithms

File Hasher Data Schema & Taxonomy

File Hasher processes raw file data and returns metadata based on the requested output format. It supports standard checksum formats used by Unix-like systems:

Feature Description
Supported Algorithms MD5, SHA-1, SHA-256, SHA-512, and others via hashlib
Output Formats Standard (Hash + Path), BSD (Algo(Path) = Hash), and JSON
Exit Codes 0 (Success/Match), 1 (Error/Mismatch)
Compatibility Fully compatible with sha256sum and md5sum generated files

File Hasher Advanced Features

  • Multi-algorithm support: Compute multiple hash types (e.g., MD5 and SHA-256) in a single pass.
  • Recursive scanning: Use the directory command with the -r flag to generate checksums for entire project structures.
  • Automatic detection: The check command intelligently detects algorithms based on hash length and BSD headers.
  • JSON output mode: Perfect for integrating with other Openclaw Skills for automated DevOps pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*