---
title: "古典密碼工具箱 - 免費線上工具 - AllTools - 全能工具箱"
description: "古典密碼工具箱，整合凱撒、ROT13、仿射、柵欄等經典替換與置換密碼，支援自訂金鑰與位移量，適合密碼學教學與 CTF 解題。AllTools 提供免費線上工具，開啟網頁即可使用，無需安裝或登入，資料在瀏覽器本機處理。"
canonical_url: "https://tool.warmday.wang/zh-Hant/crypto/classic"
meta:
  author: AllTools
  keywords: "線上工具箱, AllTools, 實用工具, 生活常用, 數學計算, 文字處理, 圖片處理, 開發者工具, PDF 工具, 單位換算, 免費工具, 免登入工具"
  "og:description": "古典密碼工具箱，整合凱撒、ROT13、仿射、柵欄等經典替換與置換密碼，支援自訂金鑰與位移量，適合密碼學教學與 CTF 解題。AllTools 提供免費線上工具，開啟網頁即可使用，無需安裝或登入，資料在瀏覽器本機處理。"
  "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": "古典密碼工具箱 - 免費線上工具"
  "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)

# **經典密碼工具**

整合凱撒、ROT13、ROT47、Atbash、仿射、A1Z26、柵欄等經典密碼演算法的編碼解碼工具，支援自訂參數，適合密碼學教學與學習。

### **演算法選擇**

**演算法 (Algorithm)**

**位移量 (Shift)**

**輸入**

**結果**

## **使用說明**

#### **演算法介紹**

凱撒密碼：每個字母依固定位移替換，是最古老的替換密碼；ROT13：位移量為 13 的凱撒密碼（因字母表有 26 個字母，ROT13 是自反的）；ROT47：對 ASCII 33-126 共 94 個字元做位移 47 的替換；Atbash：字母表首尾對稱映射的自反密碼；仿射密碼：基於線性轉換 E(x)=(ax+b) mod 26 的替換密碼，要求 a 與 26 互質；A1Z26：字母與數字一一對應（a=1, b=2, ..., z=26）；柵欄密碼：將明文依 zigzag 排列在多欄中再逐列讀取的置換密碼。

#### **使用步驟**

1\. 從左側選擇要使用的密碼演算法；2. 依所選演算法設定對應參數（如位移量、A/B 參數、欄數等）；3. 在輸入框輸入要處理的文字；4. 點選「編碼」或「解碼」按鈕執行轉換；5. 在結果區查看輸出，可點選「複製」按鈕複製結果。

#### **注意事項**

凱撒密碼僅處理英文字母，其他字元保持不變；仿射密碼參數 A 必須與 26 互質（可選值：1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, 25）；柵欄密碼欄數至少為 2；A1Z26 編碼為小寫字母轉數字，解碼為數字轉字母；Rot13 和 Rot47 為自反運算（編碼兩次即還原）。

## **同類工具**

同一個分類下還有這些 · 加密解密

[**MD5 雜湊計算**計算文字與任意檔案的 MD5 32 位摘要，一鍵比對內容差異與校驗檔案完整性，運算在瀏覽器本機完成。](https://tool.warmday.wang/zh-Hant/crypto/md5) [**雜湊計算**雜湊計算工具，支援 MD5、SHA-1、SHA-256、SHA-512 等多種演算法對文字與檔案產生摘要，可一次比對多演算法結果用於校驗。](https://tool.warmday.wang/zh-Hant/crypto/hash) [**Base64 轉換**Base64 編碼解碼工具，支援文字字串與圖片檔案的雙向轉換，正確處理 UTF-8 中文與二進位資料，可產生 Data URL 用於內嵌圖片與 API 傳輸。](https://tool.warmday.wang/zh-Hant/crypto/base64) [**對稱式加密工具箱**整合 AES、DES、3DES、RC4、SM4 等對稱演算法，可自訂金鑰、初始向量與分組模式，適用於 API 資料加密與敏感資訊保護。](https://tool.warmday.wang/zh-Hant/crypto/symmetric) [**RSA 工具**產生 1024/2048/4096 位 RSA 金鑰對，支援公鑰加密、私鑰解密與簽章驗證，便於 API 加密除錯。](https://tool.warmday.wang/zh-Hant/crypto/rsa) [**PGP 工具**產生 OpenPGP/GnuPG 金鑰對，對文字與檔案加密、解密與簽章，相容 ASCII Armor 輸出。](https://tool.warmday.wang/zh-Hant/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/zh-Hant#website","url":"https://tool.warmday.wang/zh-Hant","name":"AllTools - 全能工具箱","inLanguage":"zh-Hant","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/zh-Hant?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/zh-Hant/crypto/classic#webpage","url":"https://tool.warmday.wang/zh-Hant/crypto/classic","isPartOf":{"@id":"https://tool.warmday.wang/zh-Hant#website"},"inLanguage":"zh-Hant","name":"古典密碼工具箱 - 免費線上工具","description":"古典密碼工具箱，整合凱撒、ROT13、仿射、柵欄等經典替換與置換密碼，支援自訂金鑰與位移量，適合密碼學教學與 CTF 解題。AllTools 提供免費線上工具，開啟網頁即可使用，無需安裝或登入，資料在瀏覽器本機處理。"},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/zh-Hant/crypto/classic#app","name":"古典密碼工具箱 - 免費線上工具","description":"古典密碼工具箱，整合凱撒、ROT13、仿射、柵欄等經典替換與置換密碼，支援自訂金鑰與位移量，適合密碼學教學與 CTF 解題。AllTools 提供免費線上工具，開啟網頁即可使用，無需安裝或登入，資料在瀏覽器本機處理。","url":"https://tool.warmday.wang/zh-Hant/crypto/classic","applicationCategory":"SecurityApplication","operatingSystem":"Web","inLanguage":"zh-Hant","isPartOf":{"@id":"https://tool.warmday.wang/zh-Hant/crypto/classic#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/zh-Hant/crypto/classic#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"首頁","item":"https://tool.warmday.wang/zh-Hant"},{"@type":"ListItem","position":2,"name":"加密解密","item":"https://tool.warmday.wang/zh-Hant/crypto"},{"@type":"ListItem","position":3,"name":"古典密碼工具箱","item":"https://tool.warmday.wang/zh-Hant/crypto/classic"}]}]}
```

## Sitemap

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