凯撒密码编码与解码工具
使用凯撒密码对文本进行编码或解码:按固定位移替换字母。
如何使用本工具
- 1
Type or paste your message into the text area.
- 2
Drag the Shift slider to pick a key from -25 to +25; the default is 3.
- 3
Read the transformed text in the gray output box, which updates instantly as you type or move the slider.
- 4
To decode a message, set the shift to the negative of the value used to encode it (for example, use -3 to undo a +3 shift).
什么是凯撒密码?
凯撒密码是已知最古老的加密方法之一,可追溯到公元前50年左右尤利乌斯·凯撒的军事通信。每个字母在字母表中按固定的位置数进行位移。由于只有25种可能的密钥,它极易被破解,但作为讲解密码学基础的工具却非常出色。
常见使用场景
Teaching cryptography basics in a classroom by letting students watch each letter shift in real time.
Solving or creating Caesar-cipher puzzles in escape rooms, ARGs, and CTF challenges.
Decoding ROT13 text from forums or email by setting the shift to 13 or -13.
Brute-forcing an unknown shift: scrub the slider through all 25 values until readable text appears.
Generating lightly obfuscated spoiler text or hint answers that readers must shift back to reveal.
Prototyping and debugging encode/decode logic before wiring up a stronger cipher in your own code.
常见问题
位移13是什么?▼
相关工具
密码哈希生成器(PBKDF2)
使用PBKDF2-SHA256在你的浏览器中生成安全的密码哈希。比MD5或简单SHA更强,工作因子可调。
HMAC生成器
使用SHA-1、SHA-256、SHA-384或SHA-512生成HMAC签名。
AES-256加密
使用AES-256-GCM加密和解密文本。密钥通过PBKDF2-SHA256从你的口令派生而来。
2FA二维码生成器
为Google Authenticator、Authy、1Password及其他2FA应用生成TOTP二维码。
密码强度检测器
根据字符集大小和常见密码列表检测你密码的熵值。完全离线运行。
ROT13编码与解码工具
使用ROT13对文本进行编码或解码:一种位移13位、且自身互逆的凯撒密码。