Skip to main content

凯撒密码编码器 / 解码器 使用凯撒移位密码对文本进行加密和解密。

Loading tool...

What Is 凯撒密码?

最早已知的加密方式归因于尤利乌斯·凯撒(偏移3)。简单的替换每个字母。保留大小写。只有25种可能的偏移--极易破解。ROT13(偏移13)是自逆的。使用纯JavaScript实现。

Technical Guide

E(x) = (x + s) mod 26. D(x) = (x + 26 - s) mod 26. 大写字母(基数65)和小写字母(基数97)。非字母字符通过正则表达式处理。25个密钥。ROT13自逆:13+13=0 mod 26。

Related Tools

About This Tool

凯撒密码 is a free online tool by FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration or installation required.