autokey | R Documentation |
This can be used to encrypt or decrypt an Autokey cipher. The Autokey Cipher is derived from the Vigenere Cipher, in which the key and plaintext are bound to generate a new encryption key for the Vigenere method. This Vigenere method uses only letters and numbers, as such any other characters used as inputs are not used in the cipher.
autokey(message, key, encrypt = TRUE)
message |
A character vector of plaintext to be encrypted or ciphertext to be decrypted |
key |
A character vector to be used as the encryption key |
encrypt |
(Default: |
A character vector of either plaintext that has been encrypted or ciphertext that has been decrypted.
autokey("VerySecretMessage", "Hack", encrypt = TRUE)
autokey("c4JYn8JfwNoLMbmAM", "Hack", encrypt = FALSE)
autokey("Very $%^&SecretMes(*sag£$%e", "Hack", encrypt = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.