Package 'tenispolaR'

Title: Provides ZENIT-POLAR Substitution Cipher Method of Encryption
Description: Implementation of ZENIT-POLAR substitution cipher method of encryption using by default the TENIS-POLAR cipher. This last cipher of encryption became famous through the collection of Brazilian books "Os Karas" by the author Pedro Bandeira. For more details, see "A Cryptographic Dictionary" (GC&CS, 1944).
Authors: Adelmo Filho [aut, cre]
Maintainer: Adelmo Filho <[email protected]>
License: GPL-3
Version: 0.2.1
Built: 2025-03-01 02:49:34 UTC
Source: https://github.com/adelmofilho/tenispolar

Help Index


ZENIT-POLAR substitution cipher method of encryption

Description

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

Usage

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

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