running_key {cipheR} | R Documentation |
Encrypt or decrypt a Running Key Vigenere Cipher
Description
This can be used to create (encrypt) and solve (decrypt) a Running Key Vigenere Cipher. A Vigenere cipher uses a table of alphabetic caesar shifts for one to twenty-six. The key is made to have an equal length to the text by adding the first letters of the text to the key. Each letter and corresponding key value determine the grid location to choose the obfuscated letter from.
The Running Key Cipher Wikipedia entry provides more information on the methods used: https://en.wikipedia.org/wiki/Running_key_cipher
Usage
running_key(x, key, decrypt = FALSE, keep_punctuation = FALSE)
Arguments
x |
A vector to be encoded or decoded. |
key |
A character vector of length one to use as a key |
decrypt |
(Default: |
keep_punctuation |
(Default: |
Value
A character vector of length equal to x that has been transformed