← Back to Skills Marketplace
kaiyuelv

Encoding Converter

by Lv Lancer · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
10
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install encoding-converter
Description
Convert and verify data between Base64, URL encoding, HEX, MD5/SHA hashes, JWT payloads, HTML entities, and binary/octal/decimal/hex formats.
README (SKILL.md)

encoding-converter

技能概述

多格式编码转换工具集。支持 Base64、URL 编码、HEX、MD5/SHA 哈希、JWT 解码、HTML 实体编码等常见编码格式的互转与校验。

何时使用

  • 需要 Base64 编码/解码数据时
  • 需要 URL encode/decode 文本时
  • 需要计算文件或字符串的 MD5/SHA 哈希时
  • 需要解码 JWT Token 查看 payload 时
  • 需要 HTML 实体编码/解码时
  • 需要进行进制转换(二进制/八进制/十进制/十六进制)时

使用方法

基础用法

from scripts.encoding_engine import EncodingConverter

ec = EncodingConverter()

# Base64 编解码
encoded = ec.base64_encode("Hello World")
decoded = ec.base64_decode(encoded)

# URL 编码
url_encoded = ec.url_encode("你好 世界")

# MD5 / SHA256 哈希
md5_hash = ec.md5("secret data")
sha256_hash = ec.sha256("secret data")

# JWT 解码(不验证签名)
payload = ec.jwt_decode("eyJhbGciOiJIUzI1NiIs...")

# HTML 实体编码
html = ec.html_encode("\x3Cdiv>Hello & 你好\x3C/div>")

# 进制转换
hex_val = ec.to_hex(255)      # -> "ff"
bin_val = ec.to_binary(255)   # -> "11111111"

文件结构

encoding-converter/
├── SKILL.md
├── README.md
├── requirements.txt
├── scripts/
│   └── encoding_engine.py     # 核心引擎
├── examples/
│   └── basic_usage.py          # 使用示例
└── tests/
    └── test_encoding.py        # 单元测试

依赖

  • Python 内置: base64, urllib.parse, hashlib, html, json, binascii
  • 可选: PyJWT 用于 JWT 编码

标签

encoding, decoding, base64, hash, jwt, developer-tools, security

Usage Guidance
This appears to be a straightforward, local encoding/decoding utility. Before installing or running: 1) remember jwt_decode explicitly does NOT verify signatures — do not treat decoded JWT payloads as trusted without verification; 2) functions that compute HMACs/hashes accept secret data as parameters — avoid passing sensitive keys to third parties or untrusted contexts; 3) optional dependency PyJWT is only suggested for JWT encoding/verification, so if you need signature checks install a vetted PyJWT version; and 4) although no network or credential access is present, review any code you run in environments with sensitive data to ensure it meets your policies.
Capability Analysis
Type: OpenClaw Skill Name: encoding-converter Version: 1.0.0 The encoding-converter skill bundle is a standard utility for common data transformation tasks such as Base64, URL encoding, hashing, and JWT decoding. The implementation in scripts/encoding_engine.py relies on standard Python libraries (hashlib, base64, secrets) and contains no evidence of data exfiltration, network communication, or malicious execution. All instructions in SKILL.md and README.md are consistent with the provided code logic.
Capability Assessment
Purpose & Capability
The name/description match the actual code and examples. All implemented functions (Base64, URL encoding, HEX, hashes, JWT decode, HTML entities, radix conversions, random generators) are appropriate for an encoding/conversion utility and no unrelated dependencies or credentials are requested.
Instruction Scope
SKILL.md instructs import/usage of the local scripts.encoding_engine API and example scripts use only local functions. There are no instructions to read unrelated files, access environment variables, or send data to external endpoints.
Install Mechanism
There is no install spec or network download. The package is instruction-only for runtime use and includes pure-Python source and optional mention of PyJWT; requirements.txt contains no forced external packages.
Credentials
The skill requests no environment variables or credentials. Functions that accept keys (HMAC) take them as arguments; nothing in the skill tries to read secrets from the environment or config paths.
Persistence & Privilege
The skill does not request always:true and does not modify agent/system configuration. It has no persistent/backdoor behavior or autonomous privilege escalation signals.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install encoding-converter
  3. After installation, invoke the skill by name or use /encoding-converter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of encoding-converter: - Provides tools for converting between Base64, URL, HEX, HTML entities, and binary/decimal/octal/hexadecimal formats. - Supports hashing with MD5 and SHA algorithms. - Allows JWT decoding (without signature verification). - Organizes code with examples and unit tests for easy integration.
Metadata
Slug encoding-converter
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Encoding Converter?

Convert and verify data between Base64, URL encoding, HEX, MD5/SHA hashes, JWT payloads, HTML entities, and binary/octal/decimal/hex formats. It is an AI Agent Skill for Claude Code / OpenClaw, with 10 downloads so far.

How do I install Encoding Converter?

Run "/install encoding-converter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Encoding Converter free?

Yes, Encoding Converter is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Encoding Converter support?

Encoding Converter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Encoding Converter?

It is built and maintained by Lv Lancer (@kaiyuelv); the current version is v1.0.0.

💬 Comments