Read a sample: 1. What Encryption Does—and Does Not Do
Imagine that you leave a laptop in a café. By the time you return, it is gone. The laptop can be replaced, but the files on it may include tax documents, family photographs, work records, and saved correspondence. Your first concern may not be the cost of the computer. It may be who can read what is stored on it.
Now imagine that the laptop’s storage was properly encrypted and the device was shut down when it disappeared. The person who took it may have the hardware, but accessing the protected files is a different problem. Without the necessary key or a way to unlock it, the stored information should be difficult to read.
That is the central promise of encryption: it can make information unreadable to someone who does not have the means to decrypt it. The details matter, though. If the laptop was already unlocked, if the thief learned the password, or if an unprotected copy of a document was stored elsewhere, encryption on the laptop might not solve the problem you actually face.
This chapter gives you a foundation for understanding both sides of that promise. You will learn the basic vocabulary, distinguish secrecy from other security goals, and identify the circumstances in which protection matters most to you. You do not need to know any mathematics or install any software to begin.
Suppose you write a note that says:
> Please send the signed agreement on Tuesday.
In its ordinary, readable form, that note is plaintext. Despite the name, plaintext does not have to be plain text. A photograph, a spreadsheet, an audio recording, or any other data in a form a program can interpret can be plaintext in the context of an encryption process.
Encryption transforms that readable information into an encoded form called ciphertext. Properly produced ciphertext should not reveal the original message to someone who lacks the appropriate key. It might appear as a jumble of characters when represented as text, or it might simply be a collection of bytes that an ordinary application cannot interpret as the original file.
The process looks like this:
Plaintext + encryption using a key → ciphertext
To recover the original information, an authorized person or system performs the reverse operation:
Ciphertext + decryption using the appropriate key → plaintext
The instructions that perform these transformations are called an encryption algorithm. The key is a value used by the algorithm to control the transformation. You can think of the algorithm as the design of a lock and the key as the particular means of operating it. Many people can understand how a lock is designed without being able to open your individual lock.
The analogy has limits. A digital key is information, not a physical object. It can be copied without the original disappearing, and software often handles it without showing it to you. Depending on the system, you may interact with a password, a device credential, or a recovery code rather than the encryption key itself.
A password and an encryption key are therefore related but not necessarily the same thing. A password might unlock a stored key or help a system derive one. We will explore those relationships in later chapters. For now, remember that the encryption key is central to protecting and recovering the data, even when it stays behind the scenes.
Imagine that you have a document named Family Records on a removable drive. You use an encryption tool to create a protected version, then store the drive in a drawer.
If someone finds only the encrypted version and cannot obtain the necessary key, the document’s contents should remain confidential. But several details deserve attention:
- If the original, unencrypted document remains on the drive, protecting the encrypted copy does not protect that original.
- If the password used to access the encrypted file is written on a label attached to the drive, the protection may be easy to bypass.
- If you forget the only way to unlock the file and have no recovery method, you may lose access too.
- If you open the document on a compromised computer, malicious software may be able to capture the contents while they are readable.
These are not arguments against encryption. They show that encryption is one part of a larger process. It protects data in a particular form, at particular locations, against particular kinds of access. To use it well, you need to know where those boundaries are.
Encryption can protect data while it is at rest, such as a file stored on a drive, and while it is in transit, such as information traveling between a browser and a website. Those protections address different moments. Encrypting a file on your computer does not automatically protect an unencrypted copy sent to someone else. Likewise, a protected connection can help secure information during transmission without determining how the receiving service stores it afterward.
The security goal most directly associated with encryption is confidentiality: keeping information from being disclosed to people or systems that are not authorized to see it.
Consider a medical form saved on a portable drive. If the drive is lost, encryption can help prevent a finder from reading the form. In a separate situation, an encrypted connection can help prevent someone observing network traffic from reading the information exchanged between your browser and a service.
Notice the wording: encryption can help…