base64-encoder
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBase64 Encoder Tool
Base64 编码工具
Description
功能说明
Encode and decode Base64, URL-safe Base64, and hexadecimal strings with support for files.
对Base64、URL-safe Base64和十六进制字符串进行编码和解码,支持文件处理。
Trigger
触发条件
- command
/base64 - User needs to encode/decode data
- User wants to convert binary to text
- 命令
/base64 - 用户需要对数据进行编码/解码
- 用户需要将二进制数据转换为文本
Usage
使用方法
bash
undefinedbash
undefinedEncode text
编码文本
python scripts/base64_encoder.py encode "Hello World"
python scripts/base64_encoder.py encode "Hello World"
Decode Base64
解码Base64
python scripts/base64_encoder.py decode "SGVsbG8gV29ybGQ="
python scripts/base64_encoder.py decode "SGVsbG8gV29ybGQ="
Encode file
编码文件
python scripts/base64_encoder.py encode --file image.png --output image.b64
python scripts/base64_encoder.py encode --file image.png --output image.b64
URL-safe encoding
URL安全编码
python scripts/base64_encoder.py encode "data" --url-safe
undefinedpython scripts/base64_encoder.py encode "data" --url-safe
undefinedTags
标签
base64encodedecodebinarytextbase64encodedecodebinarytextCompatibility
兼容性
- Codex: ✅
- Claude Code: ✅
- Codex: ✅
- Claude Code: ✅