Journey into cryptography
How have humans protected their secret messages through history? What has changed today?
Community Questions
All content in “Journey into cryptography”
Ancient cryptography
Explore how we have hidden secret messages through history.
- What is cryptography? (Video)
- The Caesar cipher (Video)
- Caesar Cipher Exploration (Scratchpad)
- Frequency Fingerprint Exploration (Scratchpad)
- Polyalphabetic cipher (Video)
- Polyalphabetic Exploration (Scratchpad)
- The one-time pad (Video)
- Perfect Secrecy Exploration (Scratchpad)
- Frequency stability property short film (Video)
- How uniform are you? (Scratchpad)
- The Enigma encryption machine (Video)
- Perfect secrecy (Video)
- Pseudorandom number generators (Video)
- Random Walk Exploration (Scratchpad)
Ciphers
Assess your understanding of the code breaking presented in the ancient cryptography lesson. This series of articles and exercises will prepare you for the upcoming challenge!
Modern cryptography
A new problem emerges in the 20th century. What happens if Alice and Bob can never meet to share a key in the first place?
- The fundamental theorem of arithmetic (Video)
- Public key cryptography: What is it? (Video)
- The discrete logarithm problem (Video)
- Diffie-hellman key exchange (Video)
- RSA encryption: Step 1 (Video)
- RSA encryption: Step 2 (Video)
- RSA encryption: Step 3 (Video)
- Time Complexity (Exploration) (Scratchpad)
- Euler's totient function (Video)
- Euler Totient Exploration (Scratchpad)
- RSA encryption: Step 4 (Video)
- What should we learn next? (Video)
Cryptography challenge 101
Ready to try your hand at real-world code breaking? This adventure contains a beginner, intermediate and super-advanced level. See how far you can go!
Modular arithmetic
This is a system of arithmetic for integers. These lessons provide a foundation for the mathematics presented in the Modern Cryptography tutorial.
- What is modular arithmetic? (Article)
- Modulo operator (Exercise)
- Modulo Challenge (Scratchpad)
- Congruence modulo (Article)
- Congruence relation (Exercise)
- Equivalence relations (Article)
- The quotient remainder theorem (Article)
- Modular addition and subtraction (Article)
- Modular addition (Exercise)
- Modulo Challenge (Addition and Subtraction) (Scratchpad)
- Modular multiplication (Article)
- Modular multiplication (Exercise)
- Modular exponentiation (Article)
- Fast modular exponentiation (Article)
- Fast Modular Exponentiation (Scratchpad)
- Modular inverses (Article)
- The Euclidean Algorithm (Article)
Primality test
Why do primes make some problems fundamentally hard? To find out we need to explore primality tests in more detail.
- Introduction (Article)
- Primality test challenge (Video)
- Trial division (Article)
- What is computer memory? (Video)
- Algorithmic efficiency (Video)
- Level 3: Challenge (Scratchpad)
- Sieve of Eratosthenes (Video)
- Level 4: Sieve of Eratosthenes (Scratchpad)
- Primality test with sieve (Video)
- Level 5: Trial division using sieve (Scratchpad)
- The prime number theorem (Video)
- Prime density spiral (Scratchpad)
- Prime Gaps (Scratchpad)
- Time space tradeoff (Video)
- Summary (what's next?) (Video)
Randomized algorithms
Would access to coin flips speed up a primality test? How would this work?
- Randomized algorithms (intro) (Video)
- Conditional probability with Bayes Theorem (Video)
- Guess the coin (Scratchpad)
- Random primality test (warm up) (Video)
- Level 9: Trial Divison vs Random Division (Scratchpad)
- Fermat's little theorem (Video)
- Fermat primality test (Video)
- Level 10: Fermat Primality Test (Scratchpad)
Did you know? You can learn how to program
on Khan Academy and create your own programs.
Go to our