Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
Coding
Caesar Cipher
Try it凯撒密码加密、解密及暴力破解(fuzz)工具。当用户需要「凯撒加密」「凯撒解密」「凯撒暴力破解」「Caesar cipher」「移位密码」「fuzz凯撒」时使用。支持自定义移位值(1-25)和自动遍历所有偏移量。
What it does
基于 Python 实现的凯撒密码(移位密码)工具,支持字母的加密、解密和暴力破解(遍历 1-25 所有偏移量)。仅处理英文字母(A-Z、a-z),非字母字符保持不变。
The skill document
凯撒密码工具 (Caesar Cipher)
概述
基于 Python 实现的凯撒密码(移位密码)工具,支持字母的加密、解密和暴力破解(遍历 1-25 所有偏移量)。仅处理英文字母(A-Z、a-z),非字母字符保持不变。
使用时机
- 用户需要凯撒密码加密/解密
- 用户说「凯撒暴力破解」「fuzz 凯撒」「遍历偏移量」
- 用户需要尝试所有可能的凯撒移位来破解密文
操作步骤
1. 调用加密/解密脚本
使用 scripts/caesar.py,支持三种模式:
# 加密(shift=3)
python3 scripts/caesar.py -m encrypt -s 3 "Hello World"
# 解密(shift=3)
python3 scripts/caesar.py -m decrypt -s 3 "Khoor Zruog"
# 暴力破解(遍历 1-25)
python3 scripts/caesar.py -m fuzz "Khoor Zruog"
2. 分析结果
- 加密/解密:直接返回结果
- 暴力破解(fuzz):显示所有 25 个偏移量结果,供用户选择
命令参数
| 参数 | 说明 | 默认 |
|---|---|---|
-m, --mode | 模式:encrypt / decrypt / fuzz | encrypt |
-s, --shift | 移位值 (1-25) | 3 |
text | 待处理的文本(位置参数) | 必填 |
示例
# 加密
python3 scripts/caesar.py -m encrypt -s 5 "Attack at dawn"
# 输出: Fyyfhp fy ifbs
# 解密
python3 scripts/caesar.py -m decrypt -s 5 "Fyyfhp fy ifbs"
# 输出: Attack at dawn
# 暴力破解 fuzz
python3 scripts/caesar.py -m fuzz "Fyyfhp fy ifbs"
# Shift 1: Exxego ex hear
# Shift 2: Dwwdfn dw gdzq
# Shift 3: Cvvcem cv fcyp
# Shift 4: Buubdl bu ebxo
# Shift 5: Attack at dawn
# Shift 6: Zsszbj zs czvm
# ...
Python API
from scripts.caesar import encrypt, decrypt, fuzz
# 加密
result = encrypt("Hello World", shift=3)
# 解密
result = decrypt("Khoor Zruog", shift=3)
# 暴力破解(返回 [(偏移, 结果), ...])
results = fuzz("Khoor Zruog")
for shift, text in results:
print(f"Shift {shift:2d}: {text}")
注意事项
- 仅支持英文字母 (A-Z, a-z),其他字符(数字、中文、标点等)保持不变
- 移位值范围为 1-25
- 字母大小写保持不变
验证
- 加密后再解密能还原原文
- fuzz 模式能正确遍历所有 25 个偏移量
- 非字母字符保持不变
- 大小写正确处理
Related skills
Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.
Site audit, content writing, and competitor analysis for organic search rankings.
Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.
More from moxin1044
Browse all skillsGenerate runnable Python web crawlers from a target URL, with library selection, JS reverse engineering, and anti-bot handling.
麦当劳MCP平台集成,提供餐品营养查询、外送点餐、配送地址管理、优惠券管理、积分兑换等20个完整功能;当用户需要查询麦当劳餐品营养、下单外卖、管理地址、查询或领取优惠券、兑换积分商品时使用
QR code scanning and generation. Invoke when user needs to scan/decode QR codes from images, generate QR codes (text, URL, WiFi), or mentions QR code related...
Recognizes CAPTCHA images using ddddocr library. Invoke when user needs to recognize/decode CAPTCHA images or mentions captcha verification.
网络空间资产搜索引擎,支持 IP/域名/端口/协议/证书等多维度查询;当用户需要进行网络资产发现、安全研究、漏洞资产定位、证书分析或需要查询特定特征的互联网资产时使用
集成60+正则表达式检测规则,支持PHP、Java、Python、Go等语言的代码安全审计