تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

hash-toolkit

بواسطة raghulpasupathi

Security & Passwords
383التنزيلات وفق ما يذكره clawskills.sh
1المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

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

الوصف

ما الذي تفعله هذه المهارة

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.

متى تستخدمها

  • 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

مثال على سير العمل

الإدخال

User asks: has this document been processed before?

الوكيل
  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

الإخراج

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

التثبيت

clawhub install raghulpasupathi/hash-toolkit

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط