Encryption Examples: 43 Problems with Answers
Worked examples of Encryption to try before you open each solution, then practice problems with answers.
Worked Examples
Example 1
mediumShow solution
Answer
First step
See the full worked solution + why-it-works coaching
SetupKey insightWhy it worksCommon pitfallConnection
Example 2
mediumExample 3
mediumExample 4
hardExample 5
hardExample 6
challengePractice Problems
Try each one, then open the solution to compare your method.
Example 1
easyExample 2
easyExample 3
easyExample 4
easyExample 5
easyExample 6
easyExample 7
easyExample 8
easyExample 9
mediumExample 10
mediumExample 11
mediumExample 12
mediumExample 13
mediumExample 14
mediumExample 15
mediumExample 16
mediumExample 17
mediumExample 18
challengeExample 19
challengeExample 20
challengeExample 21
easyExample 22
easyExample 23
easyExample 24
easyExample 25
easyExample 26
mediumExample 27
mediumExample 28
mediumExample 29
mediumExample 30
mediumExample 31
mediumExample 32
hardExample 33
hardExample 34
hardExample 35
hardExample 36
challengeExample 37
challengeWhat to focus on
Core idea: Encryption protects confidentiality by making data unreadable without the correct key.
Common stuck point: Encryption protects data from reading, but it does not automatically prove the sender is trustworthy or the device is safe.
Ask yourself: Is data being scrambled so that only someone holding the right key can turn it back into readable form?
Concept recap
Encryption is the process of transforming readable data into an unreadable form so only someone with the right key can recover the original message. It is used to protect stored files, messages, and data moving across networks, including passwords as they are sent over the internet.
Encryption is like sending a message in a locked box that anyone can carry but only the key holder can open: the postman, a thief or a nosy neighbour can hold the box and learn nothing. The comparison fails in one useful way: a real box can be smashed open, while strong encryption cannot be forced in any practical amount of time.
Read the full lesson on EncryptionRelated concepts
Background knowledge
These ideas may be useful before you work through the harder examples.