Learn R Programming

ciphertext (version 0.1.1)

caesar: caesar

Description

caesar encryption

Usage

caesar(word, key = 1, encrypt = TRUE)

Value

a string

Arguments

word

Word or phrase to be encrypted

key

numeric key

encrypt

If `TRUE` (default), the program ciphers the input word, If `FALSE`, the program decrypts it.

Examples

Run this code
caesar("Hello", 1)

Run the code above in your browser using DataLab