Encryption is the only technology in this series offering a mathematical guarantee rather than a procedural one: it does not depend on who checks what, but on the fact that without the right key the data is a set of meaningless numbers.
Understanding how it works clears up two things that cause confusion: why it protects only in certain states, and why without the recovery key there is no way to put things right.
It expands on the recommendation encrypting your personal devices.
The basic idea
Every piece of data written to the archive is transformed with an algorithm and a key. The result is indistinguishable from a random sequence.
Every piece of data read is turned back into the clear with the same key.
The process is continuous and transparent. There is no moment at which you “encrypt” a file: everything written is already encrypted, and everything read is decrypted on the fly.
On modern devices these operations are carried out by dedicated hardware components, which is why encryption today has no perceptible cost in performance.
The chain of keys
The most interesting part, and the one explaining everything else.
The key encrypting the data is not your code. It is a key generated at random when the device is first set up, far longer and stronger than any code a person could memorise.
That key is in turn protected — encrypted — with a key derived from your unlock code.
| Level | What it holds |
|---|---|
| The data | Encrypted with the main key |
| The main key | Encrypted with the key derived from the code |
| The derived key | Computed from your code, never stored |
| The code | Only you know it |
This structure has two very practical consequences.
Changing the code does not require everything to be re-encrypted. Only the main key gets re-encrypted, and it is tiny. It is why changing your computer’s password is instant.
The recovery key is a second copy of the main key, protected in a different way. It is not a way around encryption: it is another lock on the same door.
The component keeping the keys
Modern devices have an isolated hardware element, designed to keep the keys and carry out the cryptographic operations without ever exposing them to the rest of the system.
It does three things software alone could not:
It keeps the keys unreachable. Not even the operating system can extract them: it can only ask the component to perform an operation.
It limits attempts. After a few wrong codes it introduces growing delays, and after many it can make the keys permanently unusable.
It ties the keys to the device. The keys do not work on a different device: moving the drive achieves nothing.
The second point is what makes a numeric code viable: without the limit on attempts, a six-digit PIN would be guessable in short order. With the limit, it is not.
And it is also why the strength of the code counts anyway: if the component were bypassed, the code would be the only defence left.
Why the device’s states count
It is the point connecting this unit to the one on screen locking, and it is the most important part to understand.
| State | Where the keys are | The data |
|---|---|---|
| Switched off | Only in protected form | Unreadable |
| Started but never unlocked | Only in protected form | Unreadable |
| Locked after use | Some removed from memory | Largely unreadable |
| On and unlocked | In memory, ready to use | In the clear |
| Asleep | In memory | In the clear |
The last two rows are encryption’s limit, and they should be stated clearly: on a device that is on or asleep, the keys are in memory because they are needed to make it work. In that state encryption offers no protection.
The row about sleep is the surprising one: a laptop that is closed but asleep is not in the protected state. It is often treated as equivalent to switched off, and it is not.
From which follows the most useful practical rule in this unit: in risky contexts, switching off beats closing the lid.
What happens at startup
The sequence explains why a credential is sometimes requested before the system itself.
1. The device switches on and loads an unencrypted portion of the system, whose job is to ask for the credential.
2. The code is requested — or, on some systems, the request happens after the system has loaded, with the key protected by the hardware component.
3. The code unlocks the main key, which is loaded into the secure component.
4. The system starts normally, and from that moment every read and write passes through encryption.
Point 2 explains the difference between implementations: some ask for the credential before the system, others after. Both are valid, and the second is what makes it impossible to deduce the state of encryption from the startup behaviour.

Cyber Security for All: Online Security, Passwords
On the page that opens, choose:
- The best available terms
- Valid until 25 November, for a limited number of enrolments
- Lifetime access to the content, updates included
Why a remote wipe is instant
An elegant consequence worth knowing.
On an unencrypted device, really erasing the data means overwriting it — an operation taking time.
On an encrypted device it is enough to delete the key. The data stays physically on the archive, but without the key it is random numbers: definitively unrecoverable.
That is why remotely wiping a phone is nearly immediate, and why an encrypted device is far safer to resell or dispose of: even a superficial wipe leaves only unreadable data.
What encryption does not protect
For completeness, the limits.
A device on and unlocked. It is the main limit, already described.
Data in the cloud. It is protected by the service’s policies, not by your device’s encryption. They are two different things.
Data in transit. That is protected by connection encryption, covered in another unit.
An unencrypted backup. If the backup ends up in the clear on an external drive, the device’s protection does not follow it.
A weak code. Encryption is as strong as the key protecting it.
Somebody watching you type. No technology protects against an observed code.
What you have already shared. A document sent to somebody leaves the device’s perimeter, and its protection depends on where it arrived.
The content of notifications on the lock screen. They are generated by the system and shown without unlocking: encryption does not come into it. It is a setting to adjust separately.
Why encryption does not get “broken”
A recurring question deserves a clear answer: can encryption be forced?
The practical answer is no, and it is worth explaining why.
Trying every possible key is not feasible. The keys used today are of a length such that the number of combinations exceeds any computing capacity existing or foreseeable. It is not a question of power: it is a question of orders of magnitude.
The algorithms used are public and have been studied for decades. They are not secret: their strength comes from the fact that thousands of researchers have examined them without finding shortcuts.
What gets attacked, when something does, is something else:
| The real target | Why |
|---|---|
| The unlock code | It is shorter than the key, so it is the weak point |
| Faulty implementations | A programming error, not one of the mathematics |
| A device that is on | The keys are in memory |
| The recovery key | If it is kept badly |
| The person | Persuading them to hand over the code |
None of these is an attack on encryption: they are ways around it. It is why, throughout this series, the strength of the unlock code and screen locking appear alongside this recommendation.
A note on a theme recurring in discussions: future developments in computing are sometimes mentioned as something that could weaken certain algorithms. It concerns above all the encryption of communications, not that of local archives, and the standards are already evolving in anticipation. It is not a concern for personal security today.
Device, message and connection encryption
Three different things carrying the same name and regularly confused. Telling them apart clarifies what this recommendation covers and what belongs to others.
| Type | What it protects | From whom | Covered in |
|---|---|---|---|
| Device | Data at rest on the archive | Whoever takes the device | This unit |
| Connection | Data in transit | Whoever observes the network | The unit on https |
| Message | The content as far as the recipient | The service provider | Messaging apps |
| Backup | The stored copy | Whoever reaches the copy | This unit, final part |
The top three rows protect the same data at different moments in its life: when it is at rest, when it travels, when it arrives.
From which follows a practical consequence worth spelling out: having one does not imply having the others. A message protected in transit gets saved on the phone, and there it is protected by the device’s encryption — no longer by the conversation’s.
It is also why the fourth row exists as an entry of its own: a backup is a copy leaving the device, and it does not inherit its protection.
The complete picture, in one sentence: device encryption protects data where it comes to rest, and every place it comes to rest needs its own.
How this connects to the Cyber Welfare Framework
| Pillar | What this content contributes |
|---|---|
| Skills | Understanding the chain of keys and why the code counts |
| Awareness | Knowing that asleep is not the same as switched off |
| Secure Behaviour | Switching off in risky contexts; encrypting backups too |
Reference level: FL3 — Autonomous.
Summary
- The data is encrypted with a long key, which is itself protected by your code.
- The recovery key is a second lock on the same door, not an exception.
- Asleep is not off: while asleep the keys stay in memory.
- A remote wipe is instant because it deletes the key, not the data.
One thing to do today. The next time you leave your laptop unattended for a long stretch, switch it off instead of closing the lid. It is the difference between the state of maximum protection and no protection at all.
Related content
- Encrypting your personal devices — the recommendation this expands on
- How to turn on device encryption — where to act, in practice
- Impact of unencrypted data — why the states count
- Accessing data on a stolen device — what this architecture prevents
Related resources
Short reads from the Resources section, for anyone who wants to stop on a single aspect:
Start with the first step: the Cyber Welfare Programme guides you free of charge, one recommendation at a time.




