atbash {ciphertext}R 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")


[Package ciphertext version 0.1.1 Index]