|
C Fundamentals
Algorithms · data structures · cryptography · systems — pure C11, zero deps
|
Vigenère cipher — polyalphabetic shift keyed by a string. More...
Go to the source code of this file.
Functions | |
| void | vigenere_decrypt (char *text, const char *key) |
| void | vigenere_encrypt (char *text, const char *key) |
Vigenère cipher — polyalphabetic shift keyed by a string.
Conceptually a stack of 26 Caesar ciphers; the i-th letter of the plaintext is shifted by the i-th letter of the key (key cycles). Non-alphabetic characters pass through unchanged and do not advance the key index.
Definition in file vigenere.h.
| void vigenere_decrypt | ( | char * | text, |
| const char * | key | ||
| ) |
| void vigenere_encrypt | ( | char * | text, |
| const char * | key | ||
| ) |