什麼是 Atbash 密碼?

免費線上 Atbash 密碼與柵欄密碼工具。使用經典密碼演算法加密或解密文字。

Atbash 密碼是最古老的加密方法之一,可追溯至古代希伯來文本,當時用它來隱藏意義。它的運作方式是反轉字母表:A 變成 Z、B 變成 Y、C 變成 X,依此類推。相較之下,籬笆密碼(Rail Fence)是轉置密碼,透過將字母沿列(柵欄)對角書寫、再逐列讀取來重新排列字母。

Atbash 是單字母替代密碼,具有自反的獨特特性——套用兩次即恢復原始文字。這使它使用起來很簡單:視需要切換加密與解密即可。可選的數字反轉模式將 0↔9、1↔8、2↔7 依此類推對應,將密碼的應用範圍擴展到數字內容。

籬笆密碼將文字寫在可設定數量的列(2 到 10)上。例如使用 3 列時,文字「HELLO WORLD」會在三個列上對角書寫,形成鋸齒狀圖案。加密文字透過逐列讀取形成。柵欄模式視覺化精確顯示每個字母如何被放置到每列上,讓轉置一目了然。

這兩種密碼都旨在用於學習、謎題與歷史研究。兩者都無法對抗現代密碼分析。籬笆密碼可透過嘗試不同的列數(只有 2-10 種可能)並尋找可讀的輸出來破解。

Atbash 密碼的實際應用案例

解碼謎題中的 Atbash 訊息

一位謎題解題者在遊戲中遇到「ZGYZHS XZOO」。他們將它貼入 Atbash 工具,得到「TABLES WALL」。自反特性意味著他們只需貼上密文——加密與解密是相同的操作。

用 4 列籬笆密碼傳遞祕密訊息

一位學生用 4 列的籬笆密碼加密「THE TREASURE IS BURIED」。柵欄視覺化顯示跨越 4 列的鋸齒圖案。逐列讀取產生密文。他們將密文與列數傳給朋友解密。

破解未知的籬笆密碼

一位 CTF 玩家收到密文,懷疑是籬笆密碼。他們依序嘗試 2 到 10 的每個列數。在 5 列時,出現可讀的文字。柵欄視覺化確認了這個模式。因為列數範圍很小,破解只需 9 次嘗試。

為什麼要使用 Atbash 密碼?

  • Atbash: full alphabet reversal (A↔Z through M↔N)
  • Atbash: optional digit reversal (0↔9)
  • Rail Fence: configurable rail count (2-10)
  • Rail Fence: visual rail pattern display
  • 兩種密碼皆為自反或完全雙向

如何使用 Atbash 密碼 — 逐步教學

1

Select Atbash or Rail Fence mode.

2

For Atbash: type your text and optionally toggle number reversal.

3

For Rail Fence: set the number of rails (2-10) and choose Encrypt or Decrypt.

4

View the rail pattern visualization to understand the transposition.

5

Copy or save the output as needed.

Atbash 密碼適合誰?

  • 學習密碼學的學生
  • CTF 玩家
  • 謎題解謎者
  • 密碼學愛好者

Atbash 密碼專業技巧

  • 1Atbash 自反——同一個操作既可加密也可解密。這使它成為最容易實作與使用的密碼之一。「Atbash」之名來自希伯來字母 Aleph(第一個)、Taw(最後一個)、Bet(第二個)、Shin(倒數第二個)。
  • 2籬笆密碼是轉置密碼,不是替代密碼。它重新排列字母而非替換字母。這表示字母頻率會保留在密文中,使其易受頻率分析搭配字謎重排的攻擊。
  • 3解籬笆密碼謎題時,務必先嘗試 2、3 與 4 列——這些是最常見的設定。大多數教學範例與謎題密碼使用 2-5 列。
  • 4處理混合字母與數字的代碼時,請在 Atbash 中啟用數字反轉選項。否則數字會原封不動地通過,這可能成為已套用加密的線索。

Atbash 密碼 — 常見問題

What is Atbash cipher?

Atbash is a substitution cipher where the first letter of the alphabet is replaced with the last (A↔Z), the second with the second-last (B↔Y), and so on. It was originally used with the Hebrew alphabet in ancient texts.

什麼是 Rail Fence 密碼?

The Rail Fence cipher writes your message diagonally across a set number of "rails" (rows), then reads the letters row by row. For example, with 3 rails, the text "HELLO WORLD" follows a zigzag pattern across the three rows.

以現代標準來看,這些密碼安全嗎?

No. Both are classical ciphers that can be broken easily with modern techniques. They are useful for learning cryptography fundamentals, solving puzzles, and understanding historical encryption methods.

Does the text analyzer support non-English languages?

Yes. The analysis uses the browser's native Intl API for language-aware text segmentation. Word and character counting works correctly for most languages including Chinese, Japanese, Arabic, and accented Latin scripts.

Can I process very long documents?

Documents up to approximately 100,000 words are supported. Analysis is incremental, meaning results update instantly even for large texts without blocking the browser.

準備好使用 Atbash 密碼 了嗎?

免費線上工具 — 在瀏覽器中運作,無需註冊。立即開始使用。

立即試用
Free Forever · No Sign-up

182 Free Tools at Your Fingertips

All free online tools for developers, designers, students, and creators. Every tool works in your browser — no sign-up, no data collection.