encryption: ZENIT-POLAR substitution cipher method of encryption

Description Usage Arguments Details Value Examples

View source: R/encryption.R

Description

Returns a message encrypted by ZENIT-POLAR substitution cipher method of encryption using by default TENIS-POLAR key.

Usage

1
encryption(x, key_from = "tenis", key_to = "polar")

Arguments

x

message to encrypt

key_from

first one-way cipher

key_to

second one-way cipher

Details

This kind of encryption replace the nth character of 1th key to the nth character of 2nd key and vice versa.

Value

encrypted message

Examples

1
2
x <- "orro o um psibinhe tisi er kisir: e ivorre der ceseir, e celpsisae der cisopir!"
encryption(x, key_from = "polar", key_to = "tenis")

adelmofilho/tenispolaR documentation built on May 23, 2019, 3:04 a.m.