polyb.cipher: Polybius Cipher.

Description Usage Arguments Value Examples

View source: R/CIPH-fun.R

Description

Using the Polybius square, substituting each letter for a coordinate it holds inside the square.

Usage

1
polyb.cipher(ms, code)

Arguments

ms

The message to be encrypted/decrypted in a single character object. The Raw message can be written with upper cases and spaces, but no numbers. The transformed message has to be written with numbers, each separated by a single space.

code

It refers to the transformation that will be made to the message: "encrypt" and "decrypt".

Value

A character object with the transformed message, using the unique matrix of the polybius cipher. The letters "i" and "j" have the same symbol.

Examples

1
2
3
polyb.cipher(ms = "Hello World", code = "encrypt")

polyb.cipher(ms = "23 15 31 31 34 52 34 42 31 14", code = "decrypt")

Red-Right-Hand1/CIPH_package documentation built on Dec. 18, 2021, 9:55 a.m.