Learn R Programming

cipheR (version 1.0.0)

atbash: Encrypt or decrypt an Atbash Cipher

Description

This can be used to create (encrypt) and solve (decrypt) an Atbash Cipher. An Atbash Cipher swaps letters' places in the alphabet. Thus, 'a' becomes 'z', 'b' becomes 'y', and so on. The function does not differentiate between the two.

The Atbash Cipher Wikipedia entry provides more information on the methods used: https://en.wikipedia.org/wiki/Atbash

Usage

atbash(x)

Value

A character vector of length one that has been transformed

Arguments

x

A vector to be encoded or decoded.