C Fundamentals
Algorithms · data structures · cryptography · systems — pure C11, zero deps
Loading...
Searching...
No Matches
vigenere.h
Go to the documentation of this file.
1/**
2 * @file vigenere.h
3 * @brief Vigenère cipher — polyalphabetic shift keyed by a string.
4 *
5 * Conceptually a stack of 26 Caesar ciphers; the i-th letter of the
6 * plaintext is shifted by the i-th letter of the key (key cycles).
7 * Non-alphabetic characters pass through unchanged and do not advance
8 * the key index.
9 */
10
11#ifndef VIGENERE_H
12#define VIGENERE_H
13
14void vigenere_encrypt(char *text, const char *key);
15void vigenere_decrypt(char *text, const char *key);
16
17#endif /* VIGENERE_H */
void vigenere_decrypt(char *text, const char *key)
Definition vigenere.c:34
void vigenere_encrypt(char *text, const char *key)
Definition vigenere.c:33