← 返回 Skills 市场
freedompixels

Cn Hash Generator

作者 freedompixels · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
72
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install cn-hash-generator
功能描述
Hash生成器工具。支持MD5/SHA-1/SHA-256/SHA-512/BLAKE2b哈希、Base64编解码、UUID生成、HMAC签名。纯Python标准库,无需API Key。
使用说明 (SKILL.md)

Hash生成器

多功能Hash工具,支持哈希生成、Base64编解码、UUID生成、HMAC签名。纯Python标准库实现,无需API Key。

功能

  • 哈希生成:MD5、SHA-1、SHA-256、SHA-512、BLAKE2b
  • Base64:编码和解码
  • UUID:随机UUID生成
  • HMAC签名:密钥+消息签名
  • 纯标准库(hashlib + uuid + base64),零依赖

使用示例

计算"Hello World"的SHA256
生成一个UUID
Base64编码"你好"
HMAC签名 消息"test" 密钥"key"

技术实现

调用 scripts/cn_hash_generator.py,支持参数:

  • --algo:算法选择(md5/sha1/sha256/sha512/blake2)
  • --encode64:Base64编码
  • --decode:Base64解码
  • --uuid:生成UUID
  • --hmac KEY:HMAC签名
  • --upper:输出大写
  • --count N:UUID生成数量

注意事项

  • Hash是单向的,不可逆
  • MD5和SHA-1不建议用于安全场景
  • 密码存储建议使用bcrypt而非简单Hash
安全使用建议
This appears to be a small, local hashing/encoding utility and is internally consistent with its description. Before using it for security-sensitive tasks: (1) Verify the code yourself or run it in a sandbox because the source is 'unknown'. (2) Do not assume the HMAC output is a standard HMAC—update the code to use Python's builtin hmac module (hmac.new(...)) if you need interoperable HMACs. (3) Test outputs against known vectors for the algorithms you care about. (4) Because there's no network or credential access, installing is low-risk, but treat unvetted code conservatively in production environments.
功能分析
Type: OpenClaw Skill Name: cn-hash-generator Version: 1.0.1 The skill bundle is a standard utility for generating hashes, UUIDs, and performing Base64 encoding/decoding. The script `scripts/cn_hash_generator.py` uses only Python standard libraries (hashlib, uuid, base64) and contains no network activity, file system access, or suspicious execution logic. The documentation in `SKILL.md` is consistent with the code and includes appropriate security warnings regarding the use of MD5 and SHA-1.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name/description (hash, base64, UUID, HMAC) match the provided script and SKILL.md. The script implements the advertised algorithms using only Python standard library functions, so requested capabilities are proportional to the stated purpose.
Instruction Scope
SKILL.md directs local execution of scripts/cn_hash_generator.py and only describes reading provided text or stdin; it does not reference external endpoints or unrelated files. One functional issue: the HMAC implementation is nonstandard (it uses hashlib.new with the key as initial data instead of the hmac module), so outputs are not guaranteed to be standard HMAC values — this is a correctness/security caveat rather than an indication of malicious behavior.
Install Mechanism
No install spec is provided (instruction-only with a bundled script). No downloads or external installers; nothing will be written or executed beyond the included Python script when invoked.
Credentials
The skill requests no environment variables, credentials, or config paths. Its functionality does not require secrets or external tokens, and the code does not read other environment variables.
Persistence & Privilege
always is false and the skill does not attempt to modify agent/system configuration or persist credentials. Normal autonomous invocation is allowed but not exceptional here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cn-hash-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cn-hash-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Migrated main script to scripts/cn_hash_generator.py for improved structure. - Removed root-level cn_hash_generator.py and metadata.json files. - No changes to user-facing features or documentation.
v1.0.0
- 首发版本,发布多功能 Hash 生成器工具 - 支持 MD5、SHA-1、SHA-256、SHA-512、BLAKE2b 哈希 - 支持 Base64 编码与解码 - 支持随机 UUID 生成 - 支持 HMAC 签名功能 - 全部功能基于 Python 标准库,无需 API Key,零依赖
元数据
Slug cn-hash-generator
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Cn Hash Generator 是什么?

Hash生成器工具。支持MD5/SHA-1/SHA-256/SHA-512/BLAKE2b哈希、Base64编解码、UUID生成、HMAC签名。纯Python标准库,无需API Key。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。

如何安装 Cn Hash Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cn-hash-generator」即可一键安装,无需额外配置。

Cn Hash Generator 是免费的吗?

是的,Cn Hash Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cn Hash Generator 支持哪些平台?

Cn Hash Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cn Hash Generator?

由 freedompixels(@freedompixels)开发并维护,当前版本 v1.0.1。

💬 留言讨论