🔒

Cryptography

From Caesar's simple substitution to RSA and elliptic-curve key exchange. Interactive visualisations that demystify the mathematics keeping modern communication secure.

4 simulations RSA · ECC · AES Modular arithmetic · Primes

Category Simulations

Open a simulation — it runs right in your browser

Learning Resources

Deep dives into cryptography and security

About Cryptography Simulations

Ciphers, key exchange, hashing, and public-key cryptography — visualised

Cryptography simulations make the mathematics of secure communication tangible and interactive. Caesar and Vigenère cipher visualisers show classical substitution and polyalphabetic encryption letter by letter, making frequency analysis attacks obvious. RSA key-generation animations walk through Euler's totient function, modular exponentiation, and the relationship between key length and factoring difficulty.

Diffie–Hellman key-exchange simulations animate the public/private colour-mixing analogy and then show the actual modular-arithmetic protocol, demonstrating how two parties can agree on a shared secret over an insecure channel. Hash-function collision visualisers demonstrate the avalanche effect: how a one-bit change in input flips roughly half the output bits. These visualisations serve introductory cybersecurity courses and system designers learning where cryptographic primitives should be applied.

Each simulation in this category is built with accuracy and interactivity in mind. The underlying mathematical models are the same ones used in academic research and professional engineering — just made accessible through a web browser. Changing parameters in real time and observing the results is one of the most effective ways to build intuition for complex scientific and engineering concepts.

Key Concepts

Topics and algorithms you'll explore in this category

Interactive ModelReal-time browser simulation with live parameter controls
WebGL / Canvas 2DHardware-accelerated rendering in the browser
Mathematical FoundationDifferential equations and numerical integration
Open SourceMIT-licensed code — inspect, fork, and learn
No Install RequiredRuns directly in Chrome, Firefox, Safari, Edge
Educational FocusBuilt to explain the underlying science clearly

Frequently Asked Questions

Common questions about this simulation category

Do these simulations require installation?
No. Every simulation runs entirely in your web browser using WebGL and Canvas 2D. Nothing to install or download — open the page and the simulation starts immediately.
Can I use these simulations for teaching?
Yes — all simulations are designed to be educational and run without an account or login. They are widely used in university lectures, high-school science classes, and self-directed learning. Embed them via iframe or link directly.
What devices do the simulations support?
All simulations work on desktop browsers (Chrome, Firefox, Edge, Safari). Many work on mobile and tablets too, though some physics-heavy simulations benefit from the GPU performance of a desktop or laptop.

Other Categories