Cloud
Encryption
Understand how encryption at rest and encryption in transit protect data in cloud services: the core concepts every cybersecurity student needs.
What Is Encryption?
Encryption is the process of converting plaintext (readable data) into ciphertext (unreadable data) using a mathematical algorithm and a key. Only someone with the correct key can reverse the process and read the original data.
Why Cloud Encryption Matters
When you store files on a cloud service or send data over the internet, that data passes through networks you don't control and lives on servers you don't own. Without encryption, anyone who intercepts or accesses that data can read it.
The Two States of Data
In cloud computing, data exists in two primary states that each require their own encryption strategy:
Encryption at Rest
Encryption in Transit
At Rest vs. In Transit
| At Rest | In Transit | |
|---|---|---|
| What it protects | Stored data (files, databases) | Data moving over networks |
| When it applies | Data is sitting on a disk | Data is being sent or received |
| Common protocols | AES-256, BitLocker | TLS, HTTPS, SSH |
| Threat defended | Physical theft, unauthorized access | Eavesdropping, MITM attacks |
| Key management | Provider-managed or customer-managed | Negotiated per session (handshake) |
Symmetric vs. Asymmetric Keys
The TLS Handshake Simplified
How to Secure Cloud Data
Example: Sending a Confidential File
Example: Database Breach Scenario
A hospital stores patient records in a cloud database. An attacker gains unauthorized access to the storage system. What happens?
Example: Man-in-the-Middle Attack
Key Management Models
Who holds the encryption key determines your level of control and trust:
Common Mistakes
Question 1 of 5
Which type of encryption protects data that is stored on a cloud server's hard drive?
Question 2 of 5
What protocol does HTTPS use to encrypt data traveling between your browser and a web server?
Question 3 of 5
During a TLS handshake, the client and server use asymmetric encryption to securely exchange a:
Question 4 of 5
A company encrypts its cloud database but stores the encryption key in the same database. Why is this a security problem?
Question 5 of 5
In client-side encryption, when does the cloud provider have access to your plaintext data?