Cabinet Noir>History / Atbash cipher

Not sure which cipher? Identify it
The mirror cipher: the alphabet is flipped over, so A becomes Z and B becomes Y. No key at all.
Typesubstitution cipher
Breaking ittrivial to break
Erac. 586 BC
NameHebrew scribes; attested in the Book of Jeremiah.
Modesencrypt · decrypt

History

Atbash cipher

History of the Atbash cipher

Writing the name backwards

The name says exactly what the cipher does. Take the Hebrew letters Aleph, Taw, Bet, Shin — the first, last, second and second-to-last letters of the Hebrew alphabet — and you get אתבש: Atbash. The name is the key legend of the cipher itself, read off its own mapping.

Atbash in the Bible

The oldest known uses hide inside the Hebrew Bible. The Book of Jeremiah — written around the fall of Jerusalem in 586 BC — calls Babylon Sheshach and the Chaldeans Lev-kamai; medieval commentators recognised that both are ordinary Hebrew words run through Atbash (בבל bbl → ששך ššk, כשדים kśdym → לבקמי lbqmy). Commentators such as Rashi (1040–1105) and Radak discussed these passages, which makes Atbash the oldest attested substitution cipher by a wide margin.

Why scribes used it

Scholars still argue about intent: a disguise for sensitive names, a literary game, or a scribal puzzle — the Bible's scribes left no memo. What is clear is that the alphabet-mirror was part of Hebrew scribal culture centuries before European cryptography existed, and it lived on in Jewish mysticism alongside Gematria, where letters are numbers to be rearranged.

The mirror idea travels

Once generalised, Atbash is simply "reverse the collating order" — it works on Latin, Greek, Cyrillic, any ordered alphabet. Modern cryptography meets it mostly as a teaching example and a puzzle-book staple, and mathematically as the boundary case of the affine family. A cipher from the prophets, still doing service as lesson one.

c. 586 BCThe Book of Jeremiah writes Babylon as SHESHACH and the Chaldeans as LEV-KAMAI — Atbash readings confirmed by commentators. Source
c. 1100Medieval commentators (Rashi, then Radak) discuss the Atbash passages of Jeremiah, the oldest attested substitution cipher. Source