Learn R Programming

secrettext (version 0.1.0)

setcode: Encrypt a message

Description

Encrypt a character string given two numeric keys.

Usage

setcode(text, key1, key2)

Arguments

text

A string

key1

A numeric value between 1 and 25

key2

A numeric value between 1 and 25

Value

A string, converted to lowercase and encrypted

Examples

Run this code
# NOT RUN {
setcode("hello world", 5, 16)
# }

Run the code above in your browser using DataLab