Learn R Programming

ciphertext (version 0.1.0)

atbash: atbash

Description

The Atbash cipher is a type of monoalphabetic cipher which takes the alphabet and maps it to its reverse. It is a particular case of the affine cipher, with `a`=`b`= (`m`-1). As `m` is the number of letters and is equal to 26, it means that `a` = `b` = 25. Encrypting and decrypting are not separate for this cipher.

Usage

atbash(word)

Value

a string

Arguments

word

Word or phrase to be encrypted

References

https://en.wikipedia.org/wiki/Atbash

Examples

Run this code
atbash("abcxyz")

Run the code above in your browser using DataLab