caesar: Encrypt and Decrypt text using the Caesar cipher

Description Usage Arguments Value Examples

Description

Encrypt and Decrypt text using the Caesar cipher

Usage

1
caesar(text, distance = 3, reverse = FALSE)

Arguments

text

String to be ciphered or deciphered

distance

How far to move the characters in the direction you choose.

reverse

If TRUE, deciphers the coded text

direction

Move the original characters the right or to the left

Value

String of the ciphered/deciphered text

Examples

1
2
3
4
5
6
7
8
# Please see this for more info.
# https://en.wikipedia.org/wiki/Caesar_cipher

caesar("HELLO WORLD")
caesar("khoor zruog", reverse = TRUE)

caesar("HELLO WORLD", distance = 12)
caesar("tqxxa iadxp", distance = 12, reverse = TRUE)

voltek62/caesaR documentation built on May 13, 2019, 12:40 p.m.