atbash: atbash

View source: R/atbash.R

atbashR Documentation

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)

Arguments

word

Word or phrase to be encrypted

Value

a string

References

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

Examples

atbash("abcxyz")


ciphertext documentation built on April 4, 2025, 12:17 a.m.