Learn / Math / Exponents and Powers
02. Exponents and Powers
Foundations · Lesson 3 of 18 · 5:25
What 256-bit security, SHA-256, and x² all have in common — and why the gap between 2³⁰ and 2¹²⁸ is the entire reason brute-forcing a cryptographic key doesn't work.

“256-bit security.” “SHA-256.” ”21282^{128} possible keys.” ”x2=25x^2 = 25.” Every one of those phrases is a power in disguise, and cryptography is saturated with them — not as decoration, but because repeated multiplication is one of the few operations that gets hard to undo fast enough to be useful for security. Before going further into this track, powers need to stop being a vague memory from school and start being something you can read fluently.

What a power actually is

A power is just repeated multiplication, written compactly:

Example

23=2×2×2=82^3 = 2 \times 2 \times 2 = 8

2 3 base exponent 2 × 2 × 2 = 8
Fig. 1 — the two parts of a power: the base gets multiplied, the exponent says how many times.

The bottom number is the base — the thing being multiplied. The small number sitting above it is the exponent — how many copies of the base get multiplied together. 525^2 works the same way: 5×5=255 \times 5 = 25.

Powers on variables

Nothing about this changes when the base is a variable instead of a number:

Example

x2=x×xx3=x×x×xx^2 = x \times x \qquad x^3 = x \times x \times x

If x=4x = 4, then x2=4×4=16x^2 = 4 \times 4 = 16.

This is the form powers actually take inside a circuit — not a fixed number raised to a fixed power, but a secret value raised to a power, which is exactly what makes the next section interesting.

Why this shows up everywhere

Powers aren’t a cryptography-specific trick — they’re how plain geometry already works: the area of a square is side2\text{side}^2, the volume of a cube is side3\text{side}^3. Cryptography just leans on the same idea harder. Take the running example from this track: a secret value xx, and a public claim that x2=25x^2 = 25.

Checking

x2=25,x=5  ⟹  52=5×5=25✓x^2 = 25, \quad x = 5 \implies 5^2 = 5 \times 5 = 25 \quad \checkmark

A zero-knowledge proof convinces a verifier that some xx satisfying this exists, without that xx ever appearing in the proof.

That’s the same claim this track keeps returning to, just written with a power instead of a product — proof that the two notations describe exactly the same kind of statement.

Growth that outruns intuition

Powers of two climb a lot faster than they look like they should:

28 256 210 1,024 220 > 1 million 230 > 1 billion bar length scales with the exponent, not the value — the values themselves explode this fast
Fig. 2 — four powers of two, each roughly doubling the exponent of the last. The values on the right are what actually matters.

2202^{20} already clears a million. 2302^{30} clears a billion. And cryptography doesn’t stop at 30 — it goes to 21282^{128} or 22562^{256}.

A 128-bit key space

2128≈3.4×10382^{128} \approx 3.4 \times 10^{38}

Roughly 340 undecillion — a number with no everyday referent, because nothing in ordinary experience is that large.

That number is the entire basis for a phrase like “128-bit security.” It means an attacker guessing blindly has to search, on average, half of 21282^{128} possibilities before finding the right one — and even running through a trillion guesses a second, that search would still outlast the sun. Pick a big enough exponent, and brute force simply stops being a viable attack. That’s the whole job powers do in cryptography: turning a search problem into one too large for raw computing power to matter.

Three rules worth keeping

A handful of exponent rules come up constantly once polynomials and finite fields enter the picture.

Multiplying, same base

22×23=22+3=25=322^2 \times 2^3 = 2^{2+3} = 2^5 = 32

Multiplying two powers of the same base adds their exponents.

Dividing, same base

2522=25−2=23=8\frac{2^5}{2^2} = 2^{5-2} = 2^3 = 8

Dividing subtracts the exponents instead.

A power raised to a power

(23)2=23×2=26=64(2^3)^2 = 2^{3 \times 2} = 2^6 = 64

Raising a power to another power multiplies the exponents.

None of these need to be memorized as abstract rules — they fall straight out of what a power already means: a count of repeated multiplications, which is easy to add, subtract, or scale. Number theory, polynomials, and elliptic curves all lean on this same exponent arithmetic, so it’s worth being quick with it before those topics arrive.