View source: R/columnar_transposition.R
columnar_transposition | R Documentation |
This can be used to encrypt or decrypt a Columnar Transposition cipher. This method is a development of the Scytale cipher that rearranges the encryption matrix used in the Scytale method by the alphabetical ordering of the encryption key.
columnar_transposition(message, key, encrypt = TRUE)
message |
A character vector |
key |
A character vector composed only of a-zA-Z letters used as the encryption key |
encrypt |
(Default: |
A character vector of either plaintext that has been encrypted or ciphertext that has been decrypted using the columnar transposition cryptographic method.
columnar_transposition("Hidden message", "hack", encrypt = TRUE)
columnar_transposition("insed sHeegdma", "hack", encrypt = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.