affine | R Documentation |
The affine cipher is a monoalphabetic substitutoin cipher, where each letter is enciphered with the function (ax+b) mod 26 (26 is the number of letters in the alphabet)
affine(word, a, b, encrypt = TRUE)
word |
Word or phrase to be encrypted |
a |
First parameter. This value and 26 must be coprime |
b |
Second parameter. Magnitude of the shift |
encrypt |
If 'TRUE' (default), the program ciphers the input word, If 'FALSE', the program decrypts it. |
a string
https://en.wikipedia.org/wiki/Affine_cipher
affine("Hello", 1, -1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.