Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Atbash
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Relationship to the affine cipher == 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 {{nowrap|0, 1, ... , ''m'' β 1.}} (The Hebrew alphabet has {{nowrap|1=''m'' = 22,}} and the standard Latin alphabet has {{nowrap|1=''m'' = 26).}} The Atbash cipher may then be enciphered and deciphered using the encryption function for an affine cipher by setting {{nowrap|1=''a'' = ''b'' = (''m'' β 1):}} : <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 {{nowrap|1, 2, ..., ''m'',}} then the encryption and decryption function for the Atbash cipher becomes : <math>\mathrm{E}(x) = (-x \bmod m) + 1.</math>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)