C Fundamentals
Algorithms · data structures · cryptography · systems — pure C11, zero deps
Loading...
Searching...
No Matches
vigenere.h File Reference

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)
 

Detailed Description

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.

Function Documentation

◆ vigenere_decrypt()

void vigenere_decrypt ( char *  text,
const char *  key 
)

Definition at line 34 of file vigenere.c.

References vigenere_apply().

Referenced by main().

◆ vigenere_encrypt()

void vigenere_encrypt ( char *  text,
const char *  key 
)

Definition at line 33 of file vigenere.c.

References vigenere_apply().

Referenced by main().