---
title: "凯撒密码经典移位替换加密，支持 1-25 位移位量双向加解密，适合教学与 CTF - AllTools - 全能工具箱"
description: "凯撒密码工具实现经典的字母移位替换加密，支持自定义 1 到 25 的移位量并可正向加密与反向解密，适合密码学入门教学、CTF 古典密码解题与替换加密原理演示，运算在浏览器本地完成，无需上传文本。"
canonical_url: "https://tool.warmday.wang/crypto/caesar"
meta:
  author: AllTools
  keywords: "在线工具箱, AllTools, 实用工具, 生活常用, 数学计算, 文本处理, 图片处理, 开发者工具, PDF 工具, 单位换算, 免费工具, 免登录工具"
  "og:description": "凯撒密码工具实现经典的字母移位替换加密，支持自定义 1 到 25 的移位量并可正向加密与反向解密，适合密码学入门教学、CTF 古典密码解题与替换加密原理演示，运算在浏览器本地完成，无需上传文本。"
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools - 全能工具箱 Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "凯撒密码经典移位替换加密，支持 1-25 位移位量双向加解密，适合教学与 CTF"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **凯撒密码 (Caesar Cipher)**

经典的替换加密技术，通过移动字母表中的位置进行加密。

**偏移量 (Shift)**

**明文/密文 (Input)**

**结果 (Result)**

### **使用说明**

#### **什么是凯撒密码**

凯撒密码 (Caesar Cipher) 是最简单且最广为人知的替换加密技术。明文中的所有字母在字母表上按固定数目偏移后被替换成密文。例如偏移量为 3 时，A 替换为 D，B 变成 E。

#### **使用步骤**

1\. 设置偏移量 (Shift)，范围为 0-25；2. 在输入框输入文本；3. 点击“加密”将明文转为密文；4. 点击“解密”将密文还原为明文（需相同的偏移量）。

#### **注意事项**

仅处理英文字母（a-z, A-Z），非字母字符保持不变；安全性极低，仅适用于教学演示；解密时需使用与加密相同的偏移量，否则无法还原。

## **同类工具**

同一个分类下还有这些 · 加密解密

[**MD5 哈希计算**计算文本与任意文件的 MD5 32 位摘要，一键比对内容差异与校验文件完整性，运算在浏览器本地完成。](https://tool.warmday.wang/crypto/md5) [**哈希计算**哈希计算工具，支持 MD5、SHA-1、SHA-256、SHA-512 等多种算法对文本与文件生成摘要，可一次性对比多算法结果用于校验。](https://tool.warmday.wang/crypto/hash) [**Base64 转换**Base64 编码解码工具，支持文本字符串与图片文件的双向转换，正确处理 UTF-8 中文与二进制数据，可生成 Data URL 用于内联图片与接口传输。](https://tool.warmday.wang/crypto/base64) [**对称加密工具箱**集成 AES、DES、3DES、RC4、SM4 等对称算法，可自定义密钥、初始向量与分组模式，适用于接口数据加密与敏感信息保护。](https://tool.warmday.wang/crypto/symmetric) [**RSA 工具**生成 1024/2048/4096 位 RSA 密钥对，支持公钥加密、私钥解密与签名验证，便于接口加密调试。](https://tool.warmday.wang/crypto/rsa) [**PGP 工具**生成 OpenPGP/GnuPG 密钥对，对文本与文件加密、解密与签名，兼容 ASCII Armor 输出。](https://tool.warmday.wang/crypto/pgp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/#website","url":"https://tool.warmday.wang/","name":"AllTools - 全能工具箱","inLanguage":"zh","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/crypto/caesar#webpage","url":"https://tool.warmday.wang/crypto/caesar","isPartOf":{"@id":"https://tool.warmday.wang/#website"},"inLanguage":"zh","name":"凯撒密码经典移位替换加密，支持 1-25 位移位量双向加解密，适合教学与 CTF","description":"凯撒密码工具实现经典的字母移位替换加密，支持自定义 1 到 25 的移位量并可正向加密与反向解密，适合密码学入门教学、CTF 古典密码解题与替换加密原理演示，运算在浏览器本地完成，无需上传文本。"},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/crypto/caesar#app","name":"凯撒密码经典移位替换加密，支持 1-25 位移位量双向加解密，适合教学与 CTF","description":"凯撒密码工具实现经典的字母移位替换加密，支持自定义 1 到 25 的移位量并可正向加密与反向解密，适合密码学入门教学、CTF 古典密码解题与替换加密原理演示，运算在浏览器本地完成，无需上传文本。","url":"https://tool.warmday.wang/crypto/caesar","applicationCategory":"SecurityApplication","operatingSystem":"Web","inLanguage":"zh","isPartOf":{"@id":"https://tool.warmday.wang/crypto/caesar#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/crypto/caesar#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"首页","item":"https://tool.warmday.wang/"},{"@type":"ListItem","position":2,"name":"加密解密","item":"https://tool.warmday.wang/crypto"},{"@type":"ListItem","position":3,"name":"凯撒密码","item":"https://tool.warmday.wang/crypto/caesar"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
