What is the Atbash Cipher?
The Atbash cipher is a simple monoalphabetic substitution cipher in which each letter is replaced by its mirror in the alphabet: A↔Z, B↔Y, C↔X, and so on. Originally devised for the Hebrew alphabet, it adapts naturally to any alphabet of fixed length.
Because the substitution is its own inverse, the same operation both encodes and decodes Atbash messages — no key management required.
How the Atbash Cipher Works
Substitution table:
Example:
Mathematical Formula
History of the Atbash Cipher
Atbash originated with Hebrew scribes around 500–600 BCE. The name itself encodes the rule: Aleph–Tav, Beth–Shin — the first letter swaps with the last, the second with the second-to-last, and so on.
The cipher appears in the Book of Jeremiah, where the word “Sheshach” is widely interpreted as Atbash for “Babel” (Babylon). It is one of the oldest documented cryptographic techniques.
Atbash Security
Atbash is not secure:
- There is no key — the substitution is fixed and public.
- Letter frequencies are perfectly preserved (E↔V, T↔G), making frequency analysis trivial.
- It is best treated as a historical curiosity or puzzle aid, not as encryption.