vigenere_cipher
Apply the Vigenère cipher to encrypt or decrypt text using a repeating keyword for classical encryption.
Instructions
Encrypt or decrypt text using the Vigenère cipher with a keyword.
Use this for classical encryption using the Vigenère method, which
shifts letters by the repeating key.
Parameters:
text — The plaintext or ciphertext string.
key — The keyword used for encryption/decryption.
mode — "encrypt" (default) or "decrypt".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| key | Yes | ||
| mode | No | encrypt |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |