What Is Database Encryption, and What Does It Protect? (Explained Clearly) - Security+
CompTIA Security+ SY0-801: Cybersecurity Fundamentals
Database encryption explained: Compare TDE with field and record encryption, learn what each protects at rest, and see why keys matter for backup recovery.
👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn how database encryption protects data at rest, how Transparent Data Encryption (TDE) differs from field and record encryption, and why key management matters. This beginner-friendly Security+ guide helps you spot gaps in what encryption protects, from backups and exports to data in transit or in use.
Chapters:
0:00 Intro
0:12 What does database encryption actually protect?
0:51 How do database-level and record-level encryption differ?
1:53 What happens if you lose the database encryption key?
2:45 Where does database encryption stop protecting your data?
3:43 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
- Database encryption protects stored data from anyone who can’t use the decryption key. Check each copy separately: a setting on the primary database may not cover backups, snapshots, replicas, or exports.
- Transparent Data Encryption (TDE) protects stored database files without changing normal queries. The database engine still decrypts data for authorized queries, even if the account making the query is compromised.
- Client-side field or record encryption can keep plaintext out of the database engine. The trade-off is reduced search flexibility: deterministic encryption can support exact matches but reveals repeated values, while randomized encryption hides that pattern.
- Key rotation doesn’t necessarily re-encrypt old backups. Test restores to confirm the recovery environment can access both the backup and the key material it needs.
- Use TLS for data in transit and least-privilege access to limit who can read data in use. Encryption at rest does neither, and query results can still end up in plaintext exports, logs, or caches.
- 👉 Try Pluralsight to apply these concepts in guided security labs, get feedback, and check your Security+ readiness with practice exams.
Database encryption makes stored data unreadable without the right key. It can protect a stolen backup without changing what your payroll app displays. That’s not a contradiction: the backup stays encrypted, while the running database or application can decrypt the data it’s authorized to use.
To understand what an “encrypted at rest” setting actually protects, look at which copies are encrypted, where the data becomes readable, and who can decrypt it.
What Is Database Encryption?
Database encryption uses a cryptographic algorithm and a key to turn readable data, called , into unreadable data, called . A system with access to the appropriate key can reverse the process. The main goal is : if someone obtains an encrypted database backup but cannot use the key, they should not be able to read its contents.
FAQ
Quick answers to the questions people usually ask about this topic.
How can I verify that all copies of my database are encrypted?
How can I verify that all copies of my database are encrypted?
Make a list of where the data is stored: the primary database, replicas, snapshots, backups, and exports. Check the encryption settings for each copy at its destination rather than assuming it inherits the primary database’s settings. For backups, test a restore in the recovery environment to confirm it can access the required keys.
Can I enable Transparent Data Encryption (TDE) without changing my application?
Can I enable Transparent Data Encryption (TDE) without changing my application?
Usually, yes. TDE works below the query layer, so applications can keep using the same queries and indexes. The rollout still needs planning: check how your database product encrypts existing files, what it covers, and what key material you’ll need to restore a backup. Microsoft’s SQL Server TDE documentation is one product-specific example.
Can I add field-level encryption to just one sensitive column?
Can I add field-level encryption to just one sensitive column?
Yes. For example, you can encrypt bank account numbers on the client while leaving employee IDs readable for lookups. Before choosing a design, list the operations that use the sensitive column. Exact-match searches may be possible, depending on the product, but ordinary sorting and range filters generally won’t work on ciphertext alone.
Does encrypting a database protect user passwords stored in it?
Does encrypting a database protect user passwords stored in it?
Encryption at rest adds a layer of protection, but it does not replace password hashing. Store passwords as salted hashes using a password-hashing algorithm such as Argon2id, rather than as values the application can decrypt. The application can then verify a password without recovering the original from the database.
When is it safe to retire an old database encryption key?
When is it safe to retire an old database encryption key?
Retire it only after confirming that no data or backups you still need depend on it. Rotating a key does not automatically update older copies. Before retiring the key, test a restore of a retained backup that used it and verify that the recovery environment no longer needs the old key.
How can I practice database encryption concepts for Security+ after watching the video?
How can I practice database encryption concepts for Security+ after watching the video?
Start with a scenario: a database uses TDE, but a payroll export contains readable bank account numbers. Identify which copy TDE protects and what control the export still needs. For guided practice and feedback beyond the free series, try Pluralsight and use its labs, assessments, and practice exams to identify what to study next.
Comments
Add a comment...Pinned by @jaymayor
@jaymayor👉 Master your Security+ skills with Pluralsight here: https://www.jaymayor.com/go/security-plus
Some links may earn a commission. Thanks for your support.
