Learn R Programming

ciphertext (version 0.1.0)

caesar: caesar

Description

caesar encryption

Usage

caesar(word, key, decrypt = FALSE)

Value

a string

Arguments

word

Word or phrase to be encrypted

key

numeric key

decrypt

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

Examples

Run this code
caesar("Hello", 1)

Run the code above in your browser using DataLab