IT lexicon › Security › Block cipher

Block cipher

Security På svenska → Updated: 2026-08-03

Encrypts exactly one chunk at a time — and is therefore useless without a mode of operation telling it what to do with chunk two.

A block cipher maps a fixed-size block onto a block of the same size under the control of a key. Mathematically it is a family of permutations: each key selects one, and it should be impossible to distinguish from a randomly chosen permutation. AES uses 128-bit blocks; DES and 3DES use 64.

Since messages are rarely exactly one block long, two more things are needed: padding to fill out the last block, and a mode of operation to tie the blocks together. In practice the choice of mode determines security entirely — the same cipher in ECB and in GCM gives wildly different results. The opposite approach is the stream cipher, which produces a keystream bit by bit and avoids both problems.

← Back to the lexicon