Atbash

Revision as of 17:53, 2 May 2025 by 2601:c6:d200:e9b0:f4ee:9fdf:face:ecab (talk) (→‎Encryption: Rephrased, as the alphabet provided by this cipher isn’t just used for English)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Template:Short description Template:One source

File:Atbash.png
The Hebrew alphabet, run through Atbash.

Atbash (Template:Langx; also transliterated Atbaš) is a monoalphabetic substitution cipher originally used to encrypt the Hebrew alphabet. It can be modified for use with any known writing system with a standard collating order.

EncryptionEdit

The Atbash cipher is a particular type of monoalphabetic cipher formed by taking the alphabet (or abjad, syllabary, etc.) and mapping it to its reverse, so that the first letter becomes the last letter, the second letter becomes the second to last letter, and so on. For example, the ISO basic Latin alphabet would work like this: Template:Aligned table

Because there is only one way to perform this, the Atbash cipher provides no communications security, as it lacks any sort of key. If multiple collating orders are available, which one was used in encryption can be used as a key, but this does not provide significantly more security, considering that only a few letters can give away which one was used.

HistoryEdit

The name derives from the first, last, second, and second to last Hebrew letters (AlephTawBetShin).

The Atbash cipher for the modern Hebrew alphabet would be: Template:Aligned table By shifting the correlation one space to the left or the right, one may derive a variant Batgash (named for Bet–Taw–Gimel–Shin) or Ashbar (for Aleph–Shin–Bet–Reish). Either alternative mapping leaves one letter unsubstituted; respectively Aleph and Taw.

In the BibleEdit

Several biblical words are described by commentators<ref group=n>Rashi and Radak on each of the first three verses. Also other commentators.</ref> as being examples of Atbash:<ref>Template:Cite book</ref><ref>Template:Cite book</ref><ref>Template:Cite journal</ref>

Regarding a potential Atbash switch of a single letter:

Relationship to the affine cipherEdit

The Atbash cipher can be seen as a special case of the affine cipher.

Under the standard affine convention, an alphabet of m letters is mapped to the numbers Template:Nowrap (The Hebrew alphabet has Template:Nowrap and the standard Latin alphabet has Template:Nowrap The Atbash cipher may then be enciphered and deciphered using the encryption function for an affine cipher by setting Template:Nowrap

<math>\mathrm{E}(x) = \mathrm{D}(x) = \big((m - 1) x + (m - 1)\big) \bmod m.</math>

This may be simplified to

<math>

\begin{align}

\mathrm{E}(x) &= (m - 1)(x + 1) \bmod m \\
              &= -(x + 1) \bmod m.

\end{align} </math>

If, instead, the m letters of the alphabet are mapped to Template:Nowrap then the encryption and decryption function for the Atbash cipher becomes

<math>\mathrm{E}(x) = (-x \bmod m) + 1.</math>

See alsoEdit

NotesEdit

<references group=n />

ReferencesEdit

Template:Reflist

  • {{#invoke:citation/CS1|citation

|CitationClass=web }}

External linksEdit

Template:Cryptography navbox