Aller au contenu
TakoAPI
Retour aux skills

hash-toolkit

par raghulpasupathi

Security & Passwords
383Téléchargements rapportés par clawskills.sh
1Vues
0 mention J'aimeConnecte-toi pour aimer ce skill
—Pas encore noté
Ta note

Résumé

Content hashing for deduplication with MD5, SHA256, and perceptual hashing.

Description

Ce que fait ce skill

Provides MD5, SHA1, SHA256, and SHA512 hashing via Node.js built-in crypto, plus a simplified perceptual hash for content similarity. Includes duplicate detection by comparing against a known hash set and a similarity score between two hashes.

Generates all common hash types in one call instead of writing separate crypto.createHash boilerplate for each algorithm.

Quand l'utiliser

  • Deduplicating uploaded files before storing them
  • Generating cache keys from request payloads
  • Checking document integrity after network transfer
  • Finding near-duplicate text content in a processing pipeline
  • Building a seen-URLs set to avoid re-crawling

Exemple de workflow

ENTRÉE

User asks: has this document been processed before?

AGENT
  1. 1

    Generate SHA256 hash of the document content using generateHash

  2. 2

    Load the set of previously seen hashes from storage

  3. 3

    Call checkDuplicate with the new hash and the known-hashes Set

  4. 4

    Return the isDuplicate flag and hash value to the caller

SORTIE

{isDuplicate: true, hash: 'a3f2...', algorithm: 'sha256'}

Installation

clawhub install raghulpasupathi/hash-toolkit

Exécute la commande CLI, ou colle l'instruction dans Claude Code, Cursor, Codex ou l'agent de code que tu utilises.

Liens