Block ciphers and key size
Encrypts data in fixed-size blocks (e.g. 128 bits) using a key, scrambling each block in rounds. A longer key means more possible keys, so brute force takes longer.
Understanding Block ciphers and key size in QCE Digital Solutions Unit 4
What it does: Dividing the message size by the block size gives the number of blocks the cipher must encrypt. AES always uses a 128-bit block. Its key can be 128, 192 or 256 bits, so don't mix up block size and key length. Each extra bit has 2 values (0 or 1), so the number of possible keys doubles with every added bit. A longer key means far more possible keys to try, so brute force takes much longer. This is why DES's 56-bit key is considered weak. Each round scrambles the block further, making the ciphertext harder to link back to the plaintext.
Common mistakes: A longer key (256 bits) gives more possible keys than a shorter one (128 bits), so an attacker has more keys to try. The message should say 'More keys to try'. A block cipher needs the last block filled to the fixed block size. Pad with only the missing characters ('extra'), not a whole extra block_size.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 17–88) and word search (Modules 17–125).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
block cipherFill in the Blanks
Spot the Error
Student with a class code? Join your class →