base64-encoder

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Base64 Encoder Tool

Base64 编码工具

Description

功能说明

Encode and decode Base64, URL-safe Base64, and hexadecimal strings with support for files.
对Base64、URL-safe Base64和十六进制字符串进行编码和解码,支持文件处理。

Trigger

触发条件

  • /base64
    command
  • User needs to encode/decode data
  • User wants to convert binary to text
  • /base64
    命令
  • 用户需要对数据进行编码/解码
  • 用户需要将二进制数据转换为文本

Usage

使用方法

bash
undefined
bash
undefined

Encode 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
undefined
python scripts/base64_encoder.py encode "data" --url-safe
undefined

Tags

标签

base64
,
encode
,
decode
,
binary
,
text
base64
,
encode
,
decode
,
binary
,
text

Compatibility

兼容性

  • Codex: ✅
  • Claude Code: ✅
  • Codex: ✅
  • Claude Code: ✅