railfence: railfence

View source: R/railfence.R

railfenceR Documentation

railfence

Description

The rail fence is a transposition cipher where the text is written upwards and downwards diagonally (zigzag) on the rails of the fence

Usage

railfence(word, key = 3)

Arguments

word

Word or phrase to be encrypted

key

numeric key (number of rails)

Value

a string

References

https://en.wikipedia.org/wiki/Rail_fence_cipher

Examples

railfence('we are discovered flee at once',3)


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