How oscarg10101/capc-cipher works
CAPC Cipher is a small C# console application for experimenting with reversible affine, polyalphabetic substitution over a 27-letter Spanish alphabet. The user enters text and a key; the program encrypts the text, then decrypts the produced ciphertext and displays both results. In the sampled implementation, encryption and decryption each normalize inputs, generate a repeated key stream, and apply modular substitution. The README describes whitespace preservation and accent removal; punctuation and other unsupported characters are skipped. All implementation nodes use the single sampled source file.
Main entry points: Program.cs Console workflow
Components 8
Other components
- User
- Console workflow
Encriptacion1/Program.cs - Encrypt text
Encriptacion1/Program.cs - Decrypt text
Encriptacion1/Program.cs - Normalize text
Encriptacion1/Program.cs - Generate key stream
Encriptacion1/Program.cs - Modular substitution
Encriptacion1/Program.cs - Alphabet and coefficients
Encriptacion1/Program.cs
Connections 13
- User → Console workflow: enters text and key
- Console workflow → Encrypt text: calls
- Encrypt text → Console workflow: returns ciphertext
- Console workflow → Decrypt text: calls with ciphertext
- Decrypt text → Console workflow: returns plaintext
- Console workflow → User: displays results
- Encrypt text → Normalize text: normalizes inputs
- Encrypt text → Generate key stream: generates key stream
- Encrypt text → Modular substitution: transforms letters
- Decrypt text → Normalize text: normalizes key
- Decrypt text → Generate key stream: generates key stream
- Decrypt text → Modular substitution: reverses letters
- Modular substitution → Alphabet and coefficients: uses values