An educational, visual, and modular encryption sandbox centered around the Quadrant Drift Cipher (QDC) family.
Warning
This project is for educational purposes only. The algorithms implemented here are NOT cryptographically secure and should never be used for protecting sensitive real-world data.
The QDC Security Lab is designed to teach the fundamentals of modern cryptography by demonstrating how algorithms evolve to fix structural weaknesses. Users can experiment with three generations of the QDC cipher, hide data using steganography, and analyze security metrics like the Avalanche Effect and Frequency Analysis.
graph TD
User([User]) --> UI[Web Interface]
subgraph Lab
UI --> CL[Cipher Lab]
UI --> SL[Stego Lab]
UI --> AL[Analysis Lab]
end
subgraph Core
CL --> V1[QDC v1: Baseline]
CL --> V11[QDC v1.1: Whitening]
CL --> V2[QDC v2: Chained/Salted]
V1 & V11 & V2 --> Utils[Core Utils]
end
subgraph Transport
SL --> Meta[Metadata Stego]
SL --> LSB[LSB Stego]
end
subgraph Analytics
AL --> Avalanche[Avalanche Test]
AL --> Freq[Frequency Analysis]
end
- QDC v1: Simple text-to-path mapping. High structural leakage.
- QDC v1.1: Adds a stream-cipher layer (whitening) to hide directional symbols.
- QDC v2: Advanced nonlinear drift, CBC-style chaining, Salt, and IVs.
- Metadata: Embed payloads in PNG
tEXtchunks. - LSB: Hide data in the noise of image pixels (Least Significant Bit substitution).
- Avalanche Viewer: Measures cryptographic sensitivity to key changes.
- Frequency Distribution: Visualizes symbol recurrence patterns.
- Clone the repository.
- Open
index.htmlin any modern web browser. - No build step or backend required.
Detailed specifications and educational guides can be found in the /docs directory:
MIT - Educational Sandbox