Atbash Cipher
Encode and decode Atbash cipher — reverses the alphabet (A ↔ Z, B ↔ Y). Ancient Hebrew cipher.
Atbash Output
What is Atbash Cipher?
Atbash is one of the oldest documented ciphers, originating in ancient Hebrew biblical texts (~500 BC). The name itself encodes the principle: A-T-B-Sh in Hebrew represents first letter, last letter, second letter, second-to-last letter — the cipher reverses the alphabet. A becomes Z, B becomes Y, C becomes X, and so on. The mapping is symmetric — same operation encodes and decodes (like ROT13). Used historically in: Hebrew biblical references (Jeremiah's 'Sheshach' encoded Babylon), Kabbalah mystical texts, medieval Christian writings. Today: educational examples in cryptography history, simple puzzles, programming exercises.
How to use this tool
- Enter text — English letters only get encoded. Numbers, symbols, spaces unchanged.
- View Atbash output — Each letter mapped to its mirror in alphabet.
- Copy result — Use in puzzles, demonstrations, history exercises.
- Decode by applying again — Same operation reverses — Atbash is involutory.
Atbash mapping
A B C D E F G H I J K L M Z Y X W V U T S R Q P O N A ↔ Z, B ↔ Y, C ↔ X, D ↔ W, ...
Algorithm:
For each letter: encoded = 'Z' - (letter - 'A')
Or mathematically: encoded = 25 - position
Symmetric: applying twice returns original. encode(encode(x)) = x.
Historical note: In Hebrew, Atbash mapped aleph ↔ tav (first and last letters), beth ↔ shin (second and second-to-last). The cipher name describes the mapping rule.
Examples
- 'HELLO': → 'SVOOL'
- 'ATBASH': → 'ZGYZHS'
- Biblical example (Jeremiah 25:26): 'BABEL' → 'SHESHACH' (using Hebrew Atbash)
- Cryptography lecture: 'TYPE THIS' → 'GBKV GSRH'
- Compare with ROT13: 'HELLO' → ROT13 = 'URYYB', Atbash = 'SVOOL'
Tips & best practices
- Atbash is symmetric: same operation encodes and decodes
- Use for educational examples showing simple substitution ciphers
- Historical curiosity: oldest written cipher in known records
- Programming exercise: implement Atbash as introduction to string manipulation
- Can combine Atbash with Caesar shift for slightly more complex puzzle
- Modern cryptography: NO security value — trivially broken
Limitations & notes
Provides ZERO security — only 1 possible mapping (no key space). Anyone who knows it's Atbash decodes instantly. Useful only for education, history, puzzles. Doesn't handle non-Latin letters.
Frequently Asked Questions
Where does the name 'Atbash' come from?
Hebrew letters: Aleph (first) ↔ Tav (last), Beth (second) ↔ Shin (second-to-last). The name 'A-T-B-Sh' describes the mapping rule.
Is Atbash truly the oldest cipher?
It's one of the oldest documented (~500 BC in Hebrew texts). Egyptian hieroglyphic substitutions may be older. Atbash is the oldest with clear documented usage.
Why is Atbash used in biblical texts?
Jeremiah used it for political reasons — 'Sheshach' (Atbash of Babel) was a coded reference to Babylon, avoiding political risk of directly criticizing the conquering empire.
Is Atbash secure?
Absolutely not — only 1 mapping exists. Anyone with this tool decodes instantly. Even hand-computation takes seconds. For real security: AES, RSA.
How is Atbash different from ROT13?
Both are symmetric (encode = decode). ROT13 shifts each letter by 13 positions (linear). Atbash reverses the alphabet (mirror). Different mappings produce different outputs.
Can Atbash be combined with other ciphers?
Yes — classical cryptographers sometimes layered Atbash + Caesar shift + transposition. Each layer adds complexity but modern computers crack combined ciphers easily.
Is Atbash useful for puzzles today?
Yes — in escape rooms, ARGs (alternate reality games), crossword clues. Players need cipher recognition skills — Atbash is one of the classic options.
Related tools
Caesar Cipher · ROT13 Encoder / Decoder · Morse Code Translator
