RevealTheme logo

凯撒密码编码与解码工具

使用凯撒密码对文本进行编码或解码:按固定位移替换字母。

如何使用本工具

  1. 1

    Type or paste your message into the text area.

  2. 2

    Drag the Shift slider to pick a key from -25 to +25; the default is 3.

  3. 3

    Read the transformed text in the gray output box, which updates instantly as you type or move the slider.

  4. 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是什么?
这就是ROT13,一种自逆的特殊情况:应用两次即可还原出原始文本。

相关工具