用 ROT13 编码与解码文本

使用经典的 13 位字母位移来隐藏剧透和谜题答案。

Linux终端脚本安全低风险
运行 echo "hello world" | rot13,输出 ROT13 编码后的文本。

01命令

命令
$ echo "hello world" | rot13

02作用说明

ROT13 把每个字母移动十三位;由于字母表有 26 个字母,再次执行即可还原原文。它不是加密,毫无安全性,但仍是隐藏谜题答案和段子笑点的常用方式。该命令属于 bsdgames。

03风险

风险低风险
使用条件sudo apt install bsdgames
!注意: ROT13 极易逆向,绝不能用来保护真实机密。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • Debian package: bsdgames
    Debian · vendor-doc · 2026-09-20
    依据: Installs bsdgames, which includes the rot13 Caesar-cipher filter.
  • rot13(6) — Debian manpage
    Debian · technical · 2026-09-20
    依据: rot13 is the Caesar cipher alias that applies a fixed 13-letter rotation.

最后验证: 2026-09-20 · 分类: 开发者

06相关方案