A Functional Journey Through Cryptography
Welcome! This interactive page explores the history of secret messages using JavaScript to perform real encryption and decryption for some classic ciphers.
Caesar Cipher
Frequency analysis
Monoalphabetic Substitution
Enter a 26-letter key (A→key[0], B→key[1], …). Example: QWERTYUIOPASDFGHJKLZXCVBNM
Frequency analysis
Vigenère Cipher
Frequency analysis
Frequency Analysis (any text)
Modern Crypto Demo (AES-GCM) — Educational Only
Uses the browser’s SubtleCrypto
. Do not use in production to protect real secrets here.
The Enigma Machine — Enhanced (3-rotor)
Educational simulator: 3 rotors, Reflector B/C, ring settings (Ringstellung), starting positions, plugboard, and correct double-stepping.
LeftA
MiddleA
RightA