decode: Decrypt a Message

Description Usage Arguments Value Examples

View source: R/secrettext_funs.R

Description

Decrypt a character string generated with setcode() given two numeric keys.

Usage

1
decode(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 decrypted

Examples

1
2
3
4
# string argument as output of setcode()
decode(setcode("hello world", 5, 16), 5, 16)
# string argument as user defined character string
decode("cjakx preik", 5, 16)

secrettext documentation built on March 26, 2020, 6:02 p.m.