Math basics
The few math ideas behind every cipher: bits, hexadecimal, XOR, powers of two, modular arithmetic, primes, one-way functions and randomness. Animated for beginners.
- 1011Learn it →
01
Bits and bytes
How a computer turns everything into 0s and 1s.
- 0x2FLearn it →
02
Hexadecimal
A short way to write bytes: two characters each.
- ⊕Learn it →
03
XOR
The operation that mixes a key into data, and takes it back out.
- 2128Learn it →
04
Powers of two
Why one more bit doubles the work for an attacker.
- modLearn it →
05
Modular arithmetic
Clock arithmetic: numbers that wrap around.
- 7·13Learn it →
06
Prime numbers
Easy to multiply, very hard to split apart.
- gxLearn it →
07
One-way functions
Powers with wrap-around: fast forward, hopeless backward.
- ?!Learn it →
08
Randomness
Why a key must be unpredictable, not just secret.