Learn R Programming

ciphertext (version 0.1.0)

vigenere: vigenere

Description

Vigenère cipher is a method of encrypting alphabetic text where each letter of the plaintext is encoded with a different Caesar cipher, whose increment is determined by the corresponding letter the key

Usage

vigenere(word, key, decrypt = FALSE)

Value

a string

Arguments

word

Word or phrase to be encrypted

key

character key

decrypt

If `FALSE` (default), the program ciphers the input word, If `TRUE`, the program decrypts it.

References

https://en.wikipedia.org/wiki/Vigen

Examples

Run this code
vigenere("hello world", "opla")

Run the code above in your browser using DataLab