vigenere: vigenere

View source: R/vigenere.R

vigenereR Documentation

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, encrypt = TRUE)

Arguments

word

Word or phrase to be encrypted

key

character key

encrypt

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

Value

a string

References

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

Examples

vigenere("hello world", "opla")


ciphertext documentation built on April 4, 2025, 12:17 a.m.