Pular para o conteúdo
TakoAPI
Voltar às skills

hash-toolkit

por raghulpasupathi

Security & Passwords
383Downloads informados pelo clawskills.sh
1Visualizações
0 curtidaEntre para curtir esta skill
—Ainda sem avaliações
Sua avaliação

Resumo

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

Descrição

O que esta skill faz

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.

Quando usá-la

  • 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

Exemplo de fluxo de trabalho

ENTRADA

User asks: has this document been processed before?

AGENTE
  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

SAÍDA

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

Instalação

clawhub install raghulpasupathi/hash-toolkit

Execute o comando da CLI ou cole o prompt no Claude Code, Cursor, Codex ou no agente de código que você usa.

Links