encoder: Encodes a message (only ASCII characters)

Description Usage Arguments Details Value Examples

Description

Encondes the phrase 'Hello, world!' within a secret matrix that you can share with your friends.

Usage

1

Arguments

message

A string using ASCII characters to encode into a secret matrix.

txt

desired type of output. If txt = TRUE, you can share it more easily.

Details

encoder finds the position in ASCII table for each character of the message, then turn into binary code and returns a 8-column matrix with the number of rows according to total of characters in the message.

If txt = TRUE, the output is an instruction to create the secret matrix, so you can easily share.

Value

A matrix with 8 columns to represent each row as a character in your message. If txt = TRUE, a manual instruction to create the secret matrix.

Examples

1
2
enconder(message = 'Hello, world!') # Print the secret matrix
enconder(message = 'Hello, world!', txt = TRUE) # Share this with a friend

carian2996/secrets documentation built on May 9, 2019, 12:52 p.m.