← Back to Skills Marketplace
Cn Hash Generator
by
freedompixels
· GitHub ↗
· v1.0.1
· MIT-0
72
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install cn-hash-generator
Description
Hash生成器工具。支持MD5/SHA-1/SHA-256/SHA-512/BLAKE2b哈希、Base64编解码、UUID生成、HMAC签名。纯Python标准库,无需API Key。
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Tags
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cn-hash-generator - After installation, invoke the skill by name or use
/cn-hash-generator - Provide required inputs per the skill's parameter spec and get structured output
Version History
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,零依赖
Metadata
Frequently Asked Questions
What is Cn Hash Generator?
Hash生成器工具。支持MD5/SHA-1/SHA-256/SHA-512/BLAKE2b哈希、Base64编解码、UUID生成、HMAC签名。纯Python标准库,无需API Key。 It is an AI Agent Skill for Claude Code / OpenClaw, with 72 downloads so far.
How do I install Cn Hash Generator?
Run "/install cn-hash-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Cn Hash Generator free?
Yes, Cn Hash Generator is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Cn Hash Generator support?
Cn Hash Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Cn Hash Generator?
It is built and maintained by freedompixels (@freedompixels); the current version is v1.0.1.
More Skills