openskills.info
Course Preview

Database Encryption and Key Management

Database encryption turns stored database data into ciphertext so stolen files or backups are not readable without the correct keys. Key management controls who can use those keys and how they are generated, stored, rotated, recovered, and retired.

itDatabases and data storage

Database Encryption and Key Management

Database encryption transforms readable data into ciphertext and restores it only for an authorized decryption path. Key management governs the keys that make that transformation possible. The two concerns form one system: strong encryption with exposed, lost, or misused keys does not protect the database.

Encryption addresses confidentiality. It does not replace authentication, authorization, auditing, integrity controls, secure queries, or backups. Start with a threat model: name the data, the attacker, the access path, and the system boundary that must remain trusted.

The protection layers

Encryption can operate at several layers. Each layer sees a different threat and leaves a different trusted boundary.

Storage or volume encryption protects blocks below the database engine. It is useful when disks, snapshots, or physical media leave their intended environment. The mounted system decrypts blocks for the database, so a database process or administrator with normal access still sees plaintext.

Transparent data encryption (TDE) encrypts database pages or tablespaces before the engine writes them. The engine decrypts those pages when it reads them into memory. TDE commonly extends to data files and transaction logs, and encrypted backups remain dependent on the TDE key hierarchy. Its main boundary is stolen media or copied database files. An authorized query and a compromised database process can still receive plaintext.

Column or field encryption protects selected values. Database functions can perform the cryptographic operation, or a proxy can encrypt fields before the database receives them. This narrows exposure but can restrict indexes, sorting, ranges, joins, and other operations because ciphertext no longer behaves like the original value.

Client-side or application-layer encryption encrypts data before it reaches the database server. The application or a cryptographic service holds the decryption authority. This can keep plaintext from database administrators, but it moves key access and query-design responsibilities into the application path.

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources