atbash, an Octave code which applies the Atbash substitution cipher to a string of text.

The Atbash cipher replaces each character by its reverse element in the alphabet. In particular 'A' becomes 'Z', 'B' becomes 'Y' and so on. Case is respected. Nonalphabetic characters are unchanged. The Atbash cipher is symmetric, so applying it to an enciphered string returns the original string.


The computer code and data files described and made available on this web page are distributed under the MIT license


atbash is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and an Octave version and a Python version.

Related Programs:


chrpak, an Octave code which works with characters and strings.

Source Code:

Last revised on 27 November 2018.