singlecolumn: singlecolumn

View source: R/singlecolumn.R

singlecolumnR Documentation

singlecolumn

Description

In a columnar transposition cipher, the message is written out in rows of a fixed length, and then read out again column by column. The order of the column follows the alphabetical order of the letters present in the key

Usage

singlecolumn(word, key, rm.blanks = TRUE)

Arguments

word

Word or phrase to be encrypted

key

word key: for example, the key "bcea" suggests that the column order is "2-3-4-1"

rm.blanks

Should spaces between words be removed? By default set to 'TRUE'

Value

a string

References

https://www.geeksforgeeks.org/columnar-transposition-cipher/

Examples

singlecolumn("This is wikipedia", "cipher")


ciphertext documentation built on April 4, 2025, 12:17 a.m.