Encryption &
Data Protection
Master the methods that safeguard confidentiality, integrity, and availability of data: from symmetric and asymmetric encryption to hashing and key management.
What Is Encryption?
Encryption transforms plaintext (readable data) into ciphertext (unreadable data) using a mathematical algorithm and a key. Only someone possessing the correct key can reverse the process and recover the original data.
Why Data Protection Matters
Organizations face legal, financial, and reputational consequences when data is breached. Encryption and data protection controls address three pillars of information security:
Three States of Data
Data protection methods must address data in every state. Each state has unique vulnerabilities and appropriate controls:
Symmetric Encryption
Symmetric encryption uses a single shared key for both encryption and decryption. It is fast and efficient for large volumes of data.
Asymmetric Encryption
Asymmetric encryption (public-key cryptography) uses a key pair: a public key for encryption and a private key for decryption. It solves the key distribution problem.
Symmetric vs Asymmetric
| Symmetric | Asymmetric | |
|---|---|---|
| Keys | 1 shared key | Key pair (public + private) |
| Speed | Fast | Slow |
| Key Distribution | Difficult | Easy (public key shared openly) |
| Best For | Bulk data encryption | Key exchange, digital signatures |
| Examples | AES, 3DES, Blowfish | RSA, ECC, Diffie-Hellman |
| Key Length (typical) | 128 or 256 bits | 2048 or 4096 bits |
Hashing for Integrity
A hash function takes any input and produces a fixed-length output called a digest. Hashing is one-way: you cannot reverse the digest back to the original data.
Digital Signatures
A digital signature combines hashing and asymmetric encryption to provide authentication, integrity, and non-repudiation.
Key Management Lifecycle
Encryption is only as strong as its key management. A compromised key renders all encryption worthless. The key lifecycle includes:
How to Assess Encryption Controls
When evaluating an organization's encryption and data protection methods, follow this structured approach:
Example 1: TLS Handshake
When you visit a website with HTTPS, your browser performs a TLS handshake that combines asymmetric and symmetric encryption:
Example 2: Evaluating a Database
A CPA is reviewing an e-commerce company's database that stores credit card numbers. Here is the assessment checklist:
Example 3: Identifying Weak Encryption
During a SOC 2 audit, you discover the following encryption configurations. Which are acceptable?
Common Mistakes
Summary: Protection Methods
| Method | Purpose | Examples | CIA Pillar |
|---|---|---|---|
| Symmetric Encryption | Bulk data confidentiality | AES-256, 3DES | Confidentiality |
| Asymmetric Encryption | Key exchange, signatures | RSA, ECC | Confidentiality |
| Hashing | Data integrity verification | SHA-256, SHA-3 | Integrity |
| Digital Signatures | Authentication + integrity | RSA + SHA-256 | Integrity |
| TLS / SSL | Data-in-transit protection | TLS 1.3 | Confidentiality |
| Key Management | Lifecycle control of keys | HSM, Key Vault | Availability |
Question 1 of 5
Which type of encryption uses a single shared key for both encryption and decryption?
Question 2 of 5
A CPA discovers a company stores its encryption keys on the same database server as the encrypted data. What is the primary risk?
Question 3 of 5
Which of the following algorithms is deprecated and should be flagged as a finding during an audit?
Question 4 of 5
In a TLS handshake, the pre-master secret is encrypted using the server's public key. This is an example of which type of encryption?
Question 5 of 5
A digital signature provides non-repudiation because: