跳到正文
TakoAPI
返回技能列表

hash-toolkit

由 raghulpasupathi 提供

Security & Passwords
383下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接