Skip to content
CryptographyInternals

02 / 08 · Math basics

Hexadecimal

A short way to write bytes: two characters each.

Long rows of bits are hard to read. Hexadecimal packs every 4 bits into one character, so a byte always takes exactly two. It is how keys, hashes and ciphertexts are usually shown.

Base 10
0123456789
08
How it works

7 + 1 = 8

01 / 11 · Hexadecimal

We count with ten digits

Everyday numbers use ten digits, 0 to 9 (probably because we have ten fingers). When a place runs out of digits after 9, it goes back to 0 and the next place goes up: 9 + 1 = 10. This is base 10.