Description Usage Arguments Value Examples
Transforms by substitution a given message using a position shift of the alphabet, substituting each letter in the Raw message for a the letter that is a fixed number of positions ahead.
1 | caesar.cipher(ms, pos.shift, code)
|
ms |
The message to be encrypted/decrypted in a single character object. The Raw and encrypted message can be written with upper cases and spaces, but no numbers. |
pos.shift |
Indicates the position the alphabet will be shifted. Only accepts an integer between 1:26. |
code |
It refers to the transformation that will be made to the message: "encrypt" and "decrypt". |
A character object with the transformed message, using a position shift inside the alphabet to encrypt/decrypt the message.
1 2 3 | caesar.cipher(ms = "Hello World", pos.shift = 1, code = "encrypt")
caesar.cipher(ms = "jgnnqyqtnf", pos.shift = 2, code = "decrypt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.