Lewati ke konten
TakoAPI
Kembali ke skill

hash-toolkit

oleh raghulpasupathi

Security & Passwords
383Unduhan dilaporkan oleh clawskills.sh
1Tayangan
0 sukaMasuk untuk menyukai skill ini
—Belum ada penilaian
Penilaian Anda

Ringkasan

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

Deskripsi

Apa yang Dilakukan Skill Ini

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.

Kapan Menggunakannya

  • 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

Contoh Alur Kerja

INPUT

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

OUTPUT

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

Instalasi

clawhub install raghulpasupathi/hash-toolkit

Jalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.

Tautan